从DLL文件中完成C#代码 [英] Complete C# Code from DLL files

查看:70
本文介绍了从DLL文件中完成C#代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在.NET中,可以从DLL文件生成完整的C#代码(源代码已丢失)。我们尝试过Dot Peek,.NET Reflector。我们没有得到完整的代码。生成的代码也是不可理解的。

In .NET is it possible to generate complete C# code from DLL file (The source code has been lost). We have tried Dot Peek, .NET Reflector. We did not get the complete code. Also the generated code was not even understandable.

推荐答案

Just Decompile可以做到(以及项目文件)。但请注意,由于反编译并不完美,您仍然会丢失一些信息。对于使用迭代器或async / await的代码尤其如此。但是有足够的东西让你开始。

Just Decompile can do it (and the project file as well). Note however that you're still going to lose some info because decompilation isn't perfect. This is especially true with code that uses iterators or async/await. But enough is there to get you started.

反编译开始没有意义的代码不会改善任何东西。您仍然需要弄清楚代码在做什么。获得代码后,您可以通过调试器运行它。

Decompiling code that didn't make sense to begin with isn't going to improve anything. You're still going to have to figure out what the code is doing. Once you have the code though you can run it through the debugger.


这篇关于从DLL文件中完成C#代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆