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/