public static MethodBase GetCurrentMethod() { var frame = new StackFrame(1, false); return frame.GetMethod(); }