c#.net source code

2020-07-09 02:51发布

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

such as List or Dictionary implementation source code.

标签: c# .net
7条回答
beautiful°
2楼-- · 2020-07-09 03:08

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

查看更多
一夜七次
3楼-- · 2020-07-09 03:09

You can use reflector for this

查看更多
何必那么认真
4楼-- · 2020-07-09 03:21

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.

查看更多
走好不送
5楼-- · 2020-07-09 03:21

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.

查看更多
别忘想泡老子
6楼-- · 2020-07-09 03:23

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

查看更多
▲ chillily
7楼-- · 2020-07-09 03:24

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

查看更多
登录 后发表回答