VS2005_WebForm得到当前方法名称和类名称

1 得到当前类名称:

           this.GetType().ToString();

2 得到当前方法名称:
            System.Diagnostics.StackFrame frame = new System.Diagnostics.StackFrame(true);
            String __FUNCTION__ = frame.GetMethod().Name;

原文地址:https://www.cnblogs.com/xjyggd/p/1347616.html