Question

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

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top