c# - 如何使 ILspy C# 反编译结果具有更好的格式?

标签 c# windows ilspy

ILspy是一个很棒的工具,但是当我用它反编译dll时,我得到这样的结果:

this.lastOrientation = base.get_Orientation();

但它应该是这样的:

this.lastOrientation = base.Orientation;

怎样才能得到更好的结果?

更多这样的例子:

应该是:

battery_logo.Visibility = System.Windows.Visibility.Visible;

但是我们得到的是:

battery_logo.set_Visibility(System.Windows.Visibility.Visible);

当我们构建时会出现如下错误:

'System.Windows.UIElement.Visibility.set': cannot explicitly call operator or accessor

最佳答案

这里有一个错误报告:https://github.com/icsharpcode/ILSpy/issues/380

有人写道:

It turns out the issue was related to missing dependency assembly an the base type. I no longer see that issue. I am stymied on some obfuscated code though, not sure if you'd be interested in helping me work through that but I'd sure appreciate the help.

您说您正在反编译 Windows Phone 的应用程序。您可以尝试在 ILSpy 中加载 Windows Phone 引用的程序集

关于c# - 如何使 ILspy C# 反编译结果具有更好的格式?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29369264/

相关文章:

windows - 为 XNA 游戏实现基于 XML 的简单脚本语言

c# - ILSpy,如何解决依赖关系?

node.js - 在 Windows 上从命令行运行 PowerPoint 查看器

c# - 将字符串转换为字节数组并返回时,字符串末尾的字符串 "System.Byte[]"

c# - 具有多态子对象的类型的 Json.Net 序列化

c# - 使用 LINQ 选择 n 个最大的

c++ - MFC:为什么会发生这种堆损坏? (array_s.cpp/afxcoll.inl)

c# - 反编译器如何识别编译常量?

c# - AstBuilder 中的 ILSpy "Failed to resolve assembly"

c# - 在 ASP.NET Core 下拉列表中显示部分枚举列表