2010年11月3日

C# 获取命名空间,类,方法名

摘要: string pageName = "页面名" + System.IO.Path.GetFileName(HttpContext.Current.Request.Path); string fileName = ""; fileName += "命名空间:" + System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.Namespace + ";"; fileName += "类:" + System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.FullName 阅读全文

posted @ 2010-11-03 18:48 Paste 阅读(2384) 评论(0) 推荐(0)

导航

< 2025年8月 >
27 28 29 30 31 1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31 1 2 3 4 5 6
点击右上角即可分享
微信分享提示