Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What language is .NET Framework written in?

The question I always wanted to ask and was afraid to, actually - what language is .NET Framework written in? I mean library itself.
It seems to me that it was C and C++ mostly. (I hope Jon Skeet is reading this one, it`ll be very interesting to hear what he thinks about it)

like image 886
chester89 Avatar asked Aug 24 '09 21:08

chester89


People also ask

Is .NET written in C#?

NET Framework is written in C++ and C#.

Does .NET use C# or C++?

C#+ As a much more modern programming language, C# was designed to work with the current Microsoft . NET framework in both client and web-based applications. While C++ is an object-oriented language, C# is considered a component-oriented programming language.

Is .NET a C++ framework?

There's no such thing as "C++.NET". There's C++/CLI, which is basically C++ with Microsoft extensions that allow you to write code targeting the . NET framework. C++/CLI code compiles to CLR bytecode, and runs on a virtual machine just like C#.

Is .NET written in Java?

NET standard library are written in C#. The language is object-oriented and is designed to be similar enough to C to be easy for C, C++, Java, and JavaScript developers to quickly learn and use. Microsoft currently also foregrounds two other programming languages that can be used to write for the . NET Framework.


2 Answers

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. If you crack open a framework library in Reflector, class, you may see an attribute such as [MethodImpl(MethodImplOptions.InternalCall)] which delegates the call to the CLI.

like image 79
Jaimal Chohan Avatar answered Sep 22 '22 17:09

Jaimal Chohan


.NET was fully written in C and C++ because the base was in assembly language. Integration of assembly with C is much easier compared to newer languages.

like image 45
shan Avatar answered Sep 23 '22 17:09

shan