RedGate Reflector to recover source code from .net

2019-03-01 12:28发布

Quick question.

Can I recover a lost .cs file using RedGate Reflector ?

My assembly is a debug version

2条回答
戒情不戒烟
2楼-- · 2019-03-01 12:54

If you open .NET assembly in Reflector, you should be able to switch which language Reflector uses to display the code e.g. IL, VB.NET, C#. There is a dropdown list on the UI menu bar with this selection of languages.

As long as you have all the required external libraries and references, you should be able to copy the C# code form Reflector and try to rebuild it.

查看更多
对你真心纯属浪费
3楼-- · 2019-03-01 12:57

To make it a little more simple to get the IL code back into a file you should check out this Reflector Add-in.

More add-ins for Reflector can be found here.

查看更多
登录 后发表回答