Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is Jetbrains dotPeek giving me a warning about my code?

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

like image 405
JMK Avatar asked Dec 05 '13 14:12

JMK


1 Answers

This article:

  • Anonymous methods under the hood

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.

like image 188
Neolisk Avatar answered Sep 21 '22 13:09

Neolisk