C# function pointer?

前端 未结 5 1974
情话喂你
情话喂你 2020-12-25 12:40

I\'m having a problem with C#, I\'d like to get a pointer of a method in my code, but it seems impossible. I need the pointer of the method because I want to no-op it using

5条回答
  •  Happy的楠姐
    2020-12-25 12:50

    Rewriting a method cannot be done directly from managed code, however the unmanaged .net profiling api can be used to do this. See this msdn article for example on how to use it.

提交回复
热议问题