用什么语言编写ASP.NET?是C#? [英] In what language is ASP.NET written? Is it C#?

查看:499
本文介绍了用什么语言编写ASP.NET?是C#?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

只是好奇才知道。我想我几年前就读过它。 ASP.NET是使用C#还是C / C ++编写的?

Just curious to know. I think I had read it somewhere few years back. Is ASP.NET written using C# or C/C++?

推荐答案

ASP.NET是一个编写在.NET框架之上的框架。 .NET框架应用程序或服务(ASP.NET等库)可以用C#或VB.NET编写,然后转换为IL代码,以消除C#,VB.NET或Visual C ++代码之间的歧义。



用C#编写的ASP.NET代码在各方面都与VB.NET类似。性能上限也类似,因为两种语言在实际执行之前都会编译为IL代码。因此,用ASP.NET编写这个问题没有任何意义,因为一些模块可能用任何一种语言编写。



.NET已经开源了,如果GitHub会发布它们,它们也可以在GitHub上发布(或者它们已经有了 I>)。如果您查看 .NET Core [ ^ ]回复GitHub,你会发现使用了以下语言,



1. C# 98%

2. Visual Basic 0.8%

3. C ++ 0.3%

4. C 0.1%

5.其他语言。



因此,很明显,微软更倾向于使用C#作为其所有框架的核心语言。 C#编译为IL以消除VB.NET,C#或Visual C ++之间的区别。
ASP.NET is a framework, written on top of .NET framework. .NET framework applications or services (libraries such as ASP.NET) can be written in C# or VB.NET, which are then converted to IL code as to remove the ambiguity between C#, VB.NET or Visual C++ code.

ASP.NET code that you write in C# is similar to VB.NET in every way. The performance cap is also similar, because both languages are compiled down to IL code before they are actually executed. Thus the question, "ASP.NET is written in" doesn't make any sense as a few modules may be written in either language.

.NET has gone open source, ASP.NET code would also be available on GitHub if they would publish it (or perhaps they already have had). If you have a look at the .NET Core[^] repo at GitHub, you will find the following languages being used,

1. C# 98%
2. Visual Basic 0.8%
3. C++ 0.3%
4. C 0.1%
5. Misc languages.

So from this, it is clear that Microsoft prefers to use C# as their core language for all of their frameworks. C# compiles down to IL to remove the difference between VB.NET, C# or Visual C++.


CLI / CLR是用C / C ++和汇编语言编写的。几乎所有的.NET框架类都是用C#编写的。编译为IL,在CLR中运行。
The CLI/CLR is written in C/C++ and assembly. Almost all of the .NET framework classes are written in C# > compiled to IL, which runs in the CLR.


维基百科 [ ^ ]



-KR
Read the right-most box from the Wikipedia[^]

-KR


这篇关于用什么语言编写ASP.NET?是C#?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆