简体   繁体   English

是否有一个工具可以分解单个.NET类型及其所有依赖项?

[英]Is there a tool to disassemble a single .NET type along with all of its dependencies?

Suppose I wish to disassemble a type. 假设我想反汇编一个类型。 But this type depends on other types in the same assembly and so forth. 但是,此类型取决于同一程序集中的其他类型,依此类推。 In a sense, I wish to be able to disassemble the closure defined by a particular type. 从某种意义上说,我希望能够分解由特定类型定义的闭包。

I am not interesting in disassembling to C#. 我对拆卸C#并不感兴趣。 Plain IL code is fine, just like ildasm produces it. 普通的IL代码很好,就像ildasm生成它一样。

Thanks. 谢谢。

EDIT1 编辑1

It is very important for me to be able to recompile the code back again. 对我而言,能够重新重新编译代码非常重要。 It is because of this that I cannot use Reflector, which produces illegal C# code from the compiler perspective for all, but the most simple cases. 因此,我无法使用Reflector,从编译器的角度来看,Reflector会生成所有非法的C#代码,只是最简单的情况。 It is very useful to learn the code and debug it, if you have the Pro version, but not to disassemble and reassemble it back. 如果您具有Pro版本,则学习代码并对其进行调试非常有用,但不要反汇编然后重新组装。

EDIT2 编辑2

BTW, the same is true for the IL code generated by the Reflector - it is not suitable for recompilation, unlike the code produced by ildasm, which is. 顺便说一句,对于Reflector生成的IL代码也是如此-它不适合重新编译,这与ildasm生成的代码不同。 Granted, Reflector produces much more readable code, alas - not for the compiler. 当然,Reflector会产生更多可读的代码,可惜-不适合编译器。

User reflector. 用户反射器。 It will disassemble the whole assembly --> c# 它将分解整个程序集-> c#

It is a free download, for a couple more days... 这是一个免费下载,还有几天的时间...

(i am assuming you don't mind it being c# and not IL) (我假设您不介意它是c#而不是IL)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM