public GlobalMethodRef GetGlobalMethodRef(BaseTypeRef ret_type, PEAPI.CallConv call_conv, string name, BaseTypeRef[] param, int gen_param_count) { string key = MethodDef.CreateSignature(ret_type, call_conv, name, param, gen_param_count, true); GlobalMethodRef methref = null; if (global_methodref_table == null) { global_methodref_table = new Hashtable(); } else { methref = (GlobalMethodRef)global_methodref_table [key]; } if (methref == null) { methref = new GlobalMethodRef(ret_type, call_conv, name, param, gen_param_count); global_methodref_table [key] = methref; } return(methref); }
public GlobalMethodRef GetGlobalMethodRef (BaseTypeRef ret_type, PEAPI.CallConv call_conv, string name, BaseTypeRef[] param, int gen_param_count) { string key = MethodDef.CreateSignature (ret_type, call_conv, name, param, gen_param_count, true); GlobalMethodRef methref = null; if (global_methodref_table == null) global_methodref_table = new Hashtable (); else methref = (GlobalMethodRef) global_methodref_table [key]; if (methref == null) { methref = new GlobalMethodRef (ret_type, call_conv, name, param, gen_param_count); global_methodref_table [key] = methref; } return methref; }