<分区>
是否可以从方法符号中获取 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?鉴于这甚至是可能的,那么重载方法呢?