摘要: 对当前运行程序,可用如下程序获取当前的命名空间、类名、方法名: 1.(new StackTrace()).GetFrame(1) // 0为本身的方法;1为调用方法 2.(new StackTrace()).GetFrame(1).GetMethod().Name; // 方法名 3.(new St 阅读全文
posted @ 2020-09-27 16:52 我得想个好名字 阅读(3589) 评论(0) 推荐(2)