.net - tips of using Reflector

本文介绍如何正确使用Reflector查看.NET框架代码实现细节。避免从特定路径加载只包含接口声明的精简程序集,而应从安装目录加载完整版本,确保能看到所需的实现。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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

 

 

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值