Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在查看我自己的一些代码,这些代码是用 dotPeek 反编译的。
我一直看到这个:
// ISSUE: method pointer
这是什么意思?这是为了通知我我的代码有问题吗?
谢谢
本文:
建议您method pointer在代码中隐式使用匿名方法时看到这些警告 ( ),LINQ 可能就是这种情况。看起来它们被编译成显式的方法调用,所以当你反编译它们时,你会看到很多垃圾,除非反编译器知道如何将它们组装回来。
method pointer
我认为您看到了一个警告,因为 dotPeek 有一种直觉认为代码不是那样的,因此您知道可能出现的潜在问题。可以看到,在我引用的页面上,我引用的原始代码和生成的代码片段有很大的不同,而后者在示例 2 和示例 3 中非常臃肿。