public static GetMethod ( this type, string name ) : |
||
type | this | |
name | string | |
return |
public static MethodInfo GetMethod(this Type type, string name)
{
foreach (var method in type.GetRuntimeMethods())
{
if (method.Name == name)
{
return method;
}
}
return null;
}
TypeExtensionMethods::GetMethod ( this type, string name, |