1StackTrace stk = new StackTrace(); 2StackFrame stf = stk.GetFrame(0); 3string methodName = stf.GetMethod().Name;