public ICLRType GetType(string fullname) { var type = environment.GetType(fullname); ICLRType_Sharp stype = type as ICLRType_Sharp; if (stype != null && stype.NeedCCtor) { //执行.cctor stype.InvokeCCtor(this); } return(type); }
public ICLRType GetType(string fullname) { ICLRType type = this.environment.GetType(fullname); ICLRType_Sharp iCLRType_Sharp = type as ICLRType_Sharp; bool flag = iCLRType_Sharp != null && iCLRType_Sharp.NeedCCtor; if (flag) { iCLRType_Sharp.InvokeCCtor(this); } return(type); }
ICLRType GetType(string fullname, Mono.Cecil.ModuleDefinition module) { var type = environment.GetType(fullname, module); ICLRType_Sharp stype = type as ICLRType_Sharp; if (stype != null && stype.NeedCCtor) { //执行.cctor stype.InvokeCCtor(this); } return(type); }