(new StackTrace()).GetFrame(1) // 0为本身的方法;1为调用方法
(new StackTrace()).GetFrame(1).GetMethod().Name; // 方法名
(new StackTrace()).GetFrame(1).GetMethod().ReflectedType.Name; // 类名
转载于:https://www.cnblogs.com/angushine/archive/2009/10/29/1592244.html
(new StackTrace()).GetFrame(1) // 0为本身的方法;1为调用方法
(new StackTrace()).GetFrame(1).GetMethod().Name; // 方法名
(new StackTrace()).GetFrame(1).GetMethod().ReflectedType.Name; // 类名
转载于:https://www.cnblogs.com/angushine/archive/2009/10/29/1592244.html