Reflection of method name

  • Thread starter Thread starter in
  • Start date Start date
I

in

From a method, I would like to write a log message.

Can I use Reflection to pick up the method's name, from within the
method itself?
 
Sure you can:
System.Reflection.MethodBase.GetCurrentMethod.Name()

hope that helps..
Imran.
 
Back
Top