I want to have the name of the current Handler being called.
MethodInfo.GetCurrentMethod().Name or MethodBase.GetCurrentMethod().Name work fine in debug mode.
But once I obfuscate (using confuserEx) my project the 2 functions return "System.Reflection.MethodBase ()".
I've noticed I could get the name of my function using the following line :
((RoutedEventHandler)this.MyMethodName).GetMethodInfo().Name
It returns "MyMethodName" which is the expected result.
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.
 
     
    