Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.NET classes and their source code

Tags:

c#

.net

When I'm writing a C# (or any .NET programme) I use methods and classes. Most of the code I use is calling methods from the .NET classes. Is it possible (purely out of curiosity) to see the actual source code for these classes?

I know MSDN has full listings of the classes, their properties and their methods. But I would like to see the code.

like image 775
Dylan Jackson Avatar asked May 18 '11 15:05

Dylan Jackson


People also ask

What is source code in C#?

SOURCE CODE : Source code is any collection of computer instructions (possibly with comments) written using some human-readable computer language, usually as text. As a programmer you write source Code in your C# editor.

Is .NET 6.0 open source?

NET is open source and cross-platform and is maintained by Microsoft and the . NET community on GitHub. . NET consistently ranks among the top 30 most active open source projects since 2017, as tracked by the Cloud Native Computing Foundation. All aspects of .

How many classes are in .NET framework?

802 public classes from mscorlib. dll and 678 public classes from System.


2 Answers

Yes, it is:

Browse the .NET Framework source code online, with search and navigation powered by Roslyn.

See details at the .NET Framework blog...

like image 193
SLaks Avatar answered Oct 13 '22 00:10

SLaks


Yes it is possible. See here for more info:

http://weblogs.asp.net/scottgu/archive/2008/01/16/net-framework-library-source-code-now-available.aspx

like image 45
SirViver Avatar answered Oct 12 '22 22:10

SirViver