是否可以從方法符號中獲取MethodInfo對象?如何從方法符號中獲取MethodInfo
所以在同樣爲:
typeof(SomeClassSymbol) // this gets you a Type object
這是我想做的事:
public class Meatwad
{
MethodInfo method;
public Meatwad()
{
method = ReflectionThingy.GetMethodInfo(SomeMethod);
}
public void SomeMethod() { }
}
我怎麼能實現ReflectionThingy.GetMethodInfo?鑑於這甚至是可能的,那麼重載方法呢?
有點相關,我覺得:[在Foof We Trust](http://blogs.msdn.com/b/ericlippert/archive/2009/05/21/in-foof-we-trust-a-dialogue。 aspx) – 2012-02-27 18:09:36