获取有关在方法中使用类型的信息 [英] Gettting information about using types in method

查看:76
本文介绍了获取有关在方法中使用类型的信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

是否有一种方法可以识别检查方法中称为什么方法(所有可能的方法)?我想为方法获取类似stacktrace的内容,但又不直接调用方法.

Is there a way to recognize what methods are called(all possible ways) in the checking method? I want to get something like a stacktrace for a method but without calling a method directly.

也许有人有主意吗?

谢谢.

推荐答案

很容易,如果您不调用方法,那么它的堆栈跟踪将与当前堆栈跟踪相同: ).您是说要提取通话图吗?您在什么情况下尝试这样做? (调试器?探查器?运行时?基于roslyn的工具?FxCop?)
Easy, if you don't call a method then it's stack trace will be the same as the current stack trace :). Did you mean you want extract a call graph? In what context are you trying to do this? (debugger? profiler? runtime? roslyn based tool? FxCop?)


这篇关于获取有关在方法中使用类型的信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆