.net - tips of using Reflector

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

 

 

 

 

 

你可能感兴趣的:(.net)