For the code in the. NET Framework, it's not fun to take a Reflector look, if you can debug it!
In fact, Microsoft is providing a set of SourceCode downloads:
Http://referencesource.microsoft.com/netframework.aspx
Download and run the installation file to install Source and symbols locally, there is nothing to say.
The key is the following configuration in Visual Studio 2010:
1. Running Visual Studio 2010
2. Select Options from the Tools menu
3. In the Options dialog box, select Debugging->general
Uncheck "Enable Just My Code (Managed only)"
Check "Enable Source server Support"
Uncheck "Require source files to exactly match the original version"
Optional:uncheck "Step over properties and operators (Managed only)"
4. Select Debugging->symbols
In the symbol file (. pdb) Locations: area, click on the "New" button to enter the Symbols directory you just installed (that is, after the newly added checkbox). \refsrc\symbols).
Set a directory for caching Symbols. Point ok!!
Well, now you can press F11 into the framework of sourcecode in your project, enjoy it!
If you encounter any problems, you can refer to the troubleshooting section in this article :
Http://blogs.microsoft.co.il/blogs/arik/archive/2010/07/12/step-into-net-framework-4-0-source-code.aspx
Http://weblogs.asp.net/rajbk/setting-up-visual-studio-2010-to-step-into-microsoft-net-source-code