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