摘要: 获知哪个函数调用了本函数及它的类名StackTrace st = new StackTrace(); StackFrame callerFrame = st.GetFrame(2); string callerInfo = callerFrame.GetMethod().DeclaringType.Name + "." + callerFrame.GetMethod().Name + "()"; 阅读全文
posted @ 2013-11-24 16:16 swordzj 阅读(159) 评论(0) 推荐(0) 编辑