【发布时间】:2011-03-08 18:45:56
【问题描述】:
案例如下:
在项目中
public class X1
{
public string Name="X1";
}
public class X2
{
public string GetName(string name)
{
return "";
}
public string GetName(string name,ref X1 x1)
{
return "";
}
}
问题:
如何在其他项目中通过反射的getmethd函数获取'GetName' MethodInfo
【问题讨论】:
-
对标题中的术语进行吹毛求疵 - 该方法是重载,而不是覆盖。
标签: c# reflection getmethod