Asp.net .net(C#) 获取当前命名空间,类名,方法名的方法

public  static  string  GetMethodInfo() {      string  str =  "" ;       //取得当前方法命名空间      str +=  "命名空间名:" +System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.Namespace + "\n" ;      //取得当
相关文章
相关标签/搜索