public GetMethod ( string name ) : |
||
name | string | The method name |
return |
public MethodRef GetMethod(string name)
{
return (MethodRef)GetMethodDesc(name);
}
internal static MethodRef MethodBodyCtor(ClassRef klass) { MethodRef ctor = klass.GetMethod(".ctor"); if (ctor != null) return ctor; else { ctor = klass.AddMethod(".ctor", PrimitiveType.Void, new Type[0]); ctor.AddCallConv(CallConv.Instance); return ctor; } }