title: C# function pointer?
body: <p>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 WriteProcessMemory. How would I get the pointer? </p>
  
  <p>Example code</p>
  
  <pre><code>main()
  {
      function1();
      function2();
  }
  
  function1()
  {
      //get function2 pointer
      //use WPM to nop it (I know how, this is not the problem)
  }
  function2()
  {
      Writeline("bla"); //this will never happen because I added a no-op.
  }
  </code></pre>