Get executing method name

The name of the executing method (for debug and logging reasons) can obtained through the Diagnosticis object:

new System.Diagnostics.StackFrame(1).GetMethod().Name

You must have in mind that accessing the whole execution stack is very expensive in terms of CPU workload, so use it wisely.