Mono.ILASM.CodeGen.GetGlobalMethodRef C# (CSharp) Method

GetGlobalMethodRef() public method

public GetGlobalMethodRef ( Mono.ILASM.BaseTypeRef ret_type, PEAPI call_conv, string name, Mono.ILASM.BaseTypeRef param, int gen_param_count ) : Mono.ILASM.GlobalMethodRef
ret_type Mono.ILASM.BaseTypeRef
call_conv PEAPI
name string
param Mono.ILASM.BaseTypeRef
gen_param_count int
return Mono.ILASM.GlobalMethodRef
                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;
                }