静态方法中用:string className = System.Reflection.MethodBase.GetCurrentMethod().ReflectedType.FullName;非静态方法中还可以用:string className = this.GetType().FullName;