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)
NET Framework is written in C++ and 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.
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#.
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.
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.
.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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With