Reflector is a very powerful yet strong tools. You can use that to look some of the standard implementation that is widely used in the production code.
Tip 1: Do not use the Referenced Assemblies from C:\Program Fiels\References Assemblies, use C:\Windows\Microsoft.Net\Assembly or ...
the assemblies in this directory may only have the interface and type declaration and if you use the assemlies from this folder, you may not be able to see the implementation that you wants to see. I guess this is generated to accelerate the build time (smaller assembly, faster load time, compile time and etc...)
Instead, you should use the assembly from where the framework is installed. such as C:\WINDOWS\Microsoft.NET\assembly\GAC_32\;
E.g. Do not use
C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\PresentationCore.dll
Do use
C:\WINDOWS\Microsoft.NET\assembly\GAC_32\PresentationCore\v4.0_4.0.0.0__31bf3856ad364e35\PresenationCore.dll
本文介绍如何正确使用Reflector查看.NET框架代码实现细节。避免从特定路径加载只包含接口声明的精简程序集,而应从安装目录加载完整版本,确保能看到所需的实现。
169

被折叠的 条评论
为什么被折叠?



