I was having a look at some of my own code, which I had decompiled with dotPeek.

I keep seeing this:

// ISSUE: method pointer

What does this mean? Is this designed to notify me of an issue with my code?

Thanks

有帮助吗?

解决方案

This article:

Suggests that you will be seeing these warnings (method pointer), when anonymous methods are used implicitly in your code, which is likely the case with LINQ. It looks like they are getting compiled into explicit method calls, so when you decompile them, you will see lots of garbage unless a decompiler knows how to assemble them back.

I think you are seeing a warning, because dotPeek has a gut feeling that the code was not like that, and so that you are aware of potential issues that may arise. You can see that on the page I referenced the original and generated code pieces are very different, and the latter is very bloated in examples 2 and 3.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top