views:

156

answers:

7
+2  Q: 

c#.net source code

is it possible to see the source code of C# library implementations?

such as List or Dictionary implementation source code.

+10  A: 

You should be able to open up anything in Reflector (http://www.red-gate.com/products/reflector/) and view any of the framework source.

Ian Jacobs
+ 1 look know further
Perpetualcoder
+2  A: 

Use this: http://www.red-gate.com/products/reflector/

There is a free version.

There are other ways, like the Mono or Rotor source. In my opinion, Reflector is the simplest and most useful.

Merlyn Morgan-Graham
+2  A: 

Yes, it is. You can decompile every .NET Assembly using Red Gates Reflector together with the appropriate AddIns.

Bobby
+4  A: 

Yes. ReSharper helps by automatically downloading the pdb, if it is availabe from Microsoft, when you hit F12. Otherwise you can use Reflector.

Yuriy Faktorovich
A: 

You can use reflector for this

trendl
+4  A: 

You can download the entire Microsoft .NET Framework Sourcecode at Microsoft's Reference Source Code Center.

Stefan Schultze
+1 for a good link
Merlyn Morgan-Graham
A: 

If you want to go one step further than reflector and actually step into the framework code while debugging, then check out this blog post from Scott Guthrie: .NET Framework Library Source Code now available.

It tells you how to use the Microsoft Symbol servers to get the framework code while debugging.

slugster