A .net disassembler/decompiler [closed]

谁说我不能喝 提交于 2019-11-26 12:17:10

问题


I am looking for a disassembler or better, a decompiler for .net. The situation is that the source code for an assembly written by one of my predecessors is lost and I\'d like to take a look to see what it\'s doing.

I know that ildasm comes with the Visual Studio installation so I can get at the MSIL, but I was hoping there was a program clever enough to work back to the C# code (or best approximation).

Are there any tools for this out there?

(If not, I suppose it\'ll be a good excuse for me to sit down and start to learn MSIL)


回答1:


Have you looked at Reflector?

http://www.red-gate.com/products/reflector/




回答2:


Now that Red Gate have started charging for the .NET Reflector tool you might want to check out these free alternatives instead...

Telerik JustDecompile

JetBrains dotPeek

(Open Source) ILSpy




回答3:


Reflector is the way to go, but if you can't use that for some reason, Microsoft ships a disassembler called ILDasm with the framework.

A good source for MSIL knowledge is the book Expert .NET 2.0 IL Assembler by Serge Lidin.




回答4:


.NET Reflector is the usual tool for this.




回答5:


Reflector.




回答6:


Ok,

I tried on a project. ILSpy

Telerik JustDecompile

.NET Reflector Demo

All can create Visual C# project. The generated code did not compile for JustDecompile and Reflector. In one case, ILSpy made a code that compiled (just references had to be set) The mistakes IlSpy did not look as compiicated as one found in others. All generated code can be fixed if one know C# well enough.

An interesting direction can be used to decompile code using both JustDecompile and Ilspy and merge the codes that are correct because these decompilers (and third as well) seem to make different mistakes.



来源:https://stackoverflow.com/questions/578883/a-net-disassembler-decompiler

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!