.Net开发必备十大工具详解之.NET程序集反编译器Reflector

Reflector for .NET是一个面向 Microsoft .NET Framework 的免费类浏览器、分析器和DLL反编译器,.NET Framework 1.0 一经问世,它便随之而来。Reflector 显示所有托管程序集的类型、方法、属性和事件。Reflector 不只是一个简单的类浏览器界面,它还可以分析其他方法和属性调用特殊类型、方法或属性的方式,以及与其他方法和属性之间的依赖关系。此外, Reflector 还可以将方法或属性反编译为相应的 C# 或 Visual Basic?代码。
[支持反编译Lambda表达式]
Reflector 在检查和分析托管程序集方面具备强大的功能。作为反编译器,它可用于检查和检索其代码丢失的 .NET 程序集的源代码。它的分析器可以迅速找出方法与属性间的依赖关系。最重要的是,Reflector 设计为支持加载项,.NET 社区中的众多开发人员花时间创建和共享了 30 个功能强大的 Reflector 加载项(请查看 codeplex.com/reflectoraddins)。

[反编译为中间语言代码(IL)]
Code Metrics 加载项可计算选定程序集中的若干代码质量度量,简要介绍其他信息中最大、最常使用且最复杂的类型、方法及属性。Graph 加载项使用依赖图以可视方式呈现程序集的依赖关系,并可使用类关系图说明类型层次结构。Diff 加载项对比较两个版本程序集之间的差异非常有用。
r5S wS_Uy0


[使用CodeMetrics插件]
ITPUB个人空间$K`3~ `V,dV!p
其他有用的加载项包括:FileDisassembler,它可将整个程序集的反编译源代码保存为 .vb 或 .cs 文件;SQL2005Browser,使用它可浏览存储在 [url=javascript:;] SQL[/url] [url=javascript:;] Server[/url]?2005 [url=javascript:;] 数据库[/url]中的 .NET 程序集;以及 CodeSearch,它增强了 Reflector 在反编译代码中搜索字符串和正则表达式的能力。
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
提供各种语言的反编译引擎 Reflector is a class browser for .NET components. It allows browsing and searching the meta data, IL instructions, resources and XML documentation stored in a .NET assembly. Reflector was first released in October 2000 running on .NET Framework 1.0 Beta. LINQ and .NET Framework 3.5: Reflector supports query expressions and other concepts introduced in C# 3.5. To enable this feature select ".NET 3.5" under View, Options, Disassembler, Optimization. .NET Framework compatibility: Reflector runs on all versions of the .NET Framework using its own assembly loading infrastructure which does not rely on the Reflection API. For example, Reflector can load .NET Framework 2.0 assemblies without having the .NET Framework 2.0 installed. Assembly Lists:When launched for the first time, Reflector allows you to choose a default set of assemblies. The list of assemblies is then stored in the Reflector.cfg file and will be loaded next time you open the program. Reflector allows creating multiple assembly lists and switching between the lists using the File, Open List dialog. To choose a different set of default assemblies for the current assembly list you should remove all assemblies from the list (DEL) and invoke the Refresh command (F5). Assembly Cache:When resolving an assembly reference, Reflector will first search the local path next to the assembly holding the reference and then falls back to the cache directories defined in the Reflector.cfg file. Reflector does not search the Global Assembly Cache (GAC) unless you add "%SystemRoot%\Assembly" to the cache directories list. Assembly Versioning: By default, assembly version numbers are ignored when resolving type and member references. You can enable side-by-side versioning in the options dialog but it is suggested to avoid this if possible.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值