在便携式程序集中获取当前方法的MethodInfo

时间:2012-12-02 16:08:16

标签: .net portable-class-library

我想在Windows Phone和Windows Store应用支持的便携式程序集中获取当前正在执行的方法信息。 但是,MethodInfo.GetCurrentMethod()MethodBase.GetCurrentMethod()在这种便携式组件中不可用。 如何获取当前方法的MethodInfo?

1 个答案:

答案 0 :(得分:0)

也许您必须使用Type.GetMethod(还有其他重载)?