会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
苍
试问闲愁都几许?
一川烟草,满城风絮,梅子黄时雨。
博客园
首页
新随笔
订阅
管理
2017年10月23日
C# 获取当前方法的名称空间、类名和方法名称
摘要: 1.(new StackTrace()).GetFrame(1) // 0为本身的方法;1为调用方法2.(new StackTrace()).GetFrame(1).GetMethod().Name; // 方法名3.(new StackTrace()).GetFrame(1).GetMethod(
阅读全文
posted @ 2017-10-23 09:49 苍
阅读(28975)
评论(4)
推荐(7)
编辑
公告