title: Get Current Method Name
body: <p>I want to have the name of the current Handler being called.</p>
  
  <p><code>MethodInfo.GetCurrentMethod().Name</code> or <code>MethodBase.GetCurrentMethod().Name</code> work fine in debug mode.</p>
  
  <p>But once I obfuscate (using confuserEx) my project the 2 functions return <code>"System.Reflection.MethodBase ()"</code>.</p>
  
  <p>I've noticed I could get the name of my function using the following line :
  <code>((RoutedEventHandler)this.MyMethodName).GetMethodInfo().Name</code></p>
  
  <p>It returns <code>"MyMethodName"</code> which is the expected result.</p>
  
  <p>But it's not generic at all. I'd like a piece of code working when I don't know the current method's name.</p>