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

528 views Asked by At

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#. Plain IL code is fine, just like ildasm produces it.

Thanks.

EDIT1

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. 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.

EDIT2

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. Granted, Reflector produces much more readable code, alas - not for the compiler.

1

There are 1 answers

2
Simon Smeets On

User reflector. It will disassemble the whole assembly --> c#

It is a free download, for a couple more days...

(i am assuming you don't mind it being c# and not IL)