Reputation: 735
how can i see source code of built in controls in visual studio offline?
Upvotes: 0
Views: 183
Reputation: 24473
In addition to what Schabse Laks writes on downloading the sources at http://referencesource.microsoft.com/netframework.aspx:
There is more info on the sourcecode at http://referencesource.microsoft.com/
You can also configure the .NET debuggers to use http://referencesource.microsoft.com/symbols as a symbol server and step through the .NET 4.0 source code:
Note that downloading the sources in your debugger can be really slow the first time (lots of sources need to be downloaded, the server might be a bit busy, or your internet connection might be slow).
--jeroen
Upvotes: 2
Reputation: 36072
You can disassemble the IL into somewhat readable source code using Lutz Roeder's Reflector. The local variable names won't be very descriptive, but you can get a good feel for what the program logic is.
You can also disassemble IL using the ILDASM utility, but this is a bit more involved.
Upvotes: 3
Reputation: 887365
http://referencesource.microsoft.com/netframework.aspx
Note that this is shared-source, not open-source. (You can't contribute code)
Upvotes: 2