简体   繁体   English

使用哪种语言编写.Net基类库

[英]In which language .Net base class library are written

当我们说所有c#库主要建立在.Net类库中,其中编写了语言类库?

You can readily see this by obtaining the Reference Source , it includes large amounts of original source code for the .NET Framework, comments included. 您可以通过获取参考源来看到这一点,它包含大量.NET Framework的原始源代码,包括注释。 You'll see that all of the base classes were written in C#. 您将看到所有基类都是用C#编写的。

There is some C++/CLI as well, although it is not in the Reference Source. 虽然它不在参考源中,但也有一些C ++ / CLI。 Visible from the artifacts it leaves behind in the assemblies, particularly the internal <Module> class. 可以从它在程序集中留下的工件中看到,特别是内部的<Module>类。 Present in mscorlib, System.Data and PresentationCore for example, the kind of assemblies that interop with native code. 例如,在mscorlib,System.Data和PresentationCore中,与本机代码交互的程序集类型。

The source code for the CLR, the C# compiler and the just-in-time compiler is available as well from the SSCLI20 distribution . CLR,C#编译器和即时编译器的源代码也可以从SSCLI20发行版获得 It is dated, accurate only for the .NET 2.0 release. 它已过时,仅适用于.NET 2.0版本。 They were written in C++, a wee bit of assembly for very low-level functions that are processor specific. 它们是用C ++编写的,这是一种针对特定处理器的低级函数的汇编。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM