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;
}
}