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

1 得到当前类名称:

           this.GetType().ToString();

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

posted @ 2008-12-04 14:24  xjy  阅读(287)  评论(0编辑  收藏  举报