8

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

such as List or Dictionary implementation source code.

1
  • 1
    Wait, did anyone suggest Reflector?! Commented Aug 2, 2010 at 21:12

7 Answers 7

21

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

Sign up to request clarification or add additional context in comments.

Comments

12

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

1 Comment

.NET Reflector is no longer free. I use ILSpy instead, which is just as good as .NET Reflector was when it was free.
4

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

Comments

2

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.

Comments

2

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

Comments

0

You can use reflector for this

Comments

0

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.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.