title: How to get the name of current function?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/44153/can-you-use-reflection-to-find-the-name-of-the-currently-executing-method">Can you use reflection to find the name of the currently executing method?</a><br>
    <a href="https://stackoverflow.com/questions/2652460/c-sharp-how-to-get-the-name-of-the-current-method-from-code">C# how to get the name of the current method from code</a>  </p>
  </blockquote>
  
  
  
  <p>For example:</p>
  
  <pre><code>void foo() {
      Console.Write(__MYNAME__);
  }
  </code></pre>
  
  <p>print: <code>foo</code></p>
  
  <p>it's possible do it in C#?</p>