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

GetGlobalFieldRef() public method

public GetGlobalFieldRef ( Mono.ILASM.BaseTypeRef ret_type, string name ) : Mono.ILASM.GlobalFieldRef
ret_type Mono.ILASM.BaseTypeRef
name string
return Mono.ILASM.GlobalFieldRef
                public GlobalFieldRef GetGlobalFieldRef (BaseTypeRef ret_type, string name)
                {
                        string key = ret_type.FullName + name;

                        GlobalFieldRef fieldref = null;

                        if (global_fieldref_table == null)
                                global_fieldref_table = new Hashtable ();
                        else
                                fieldref = (GlobalFieldRef) global_fieldref_table [key];

                        if (fieldref == null) {
                                fieldref = new GlobalFieldRef (ret_type, name);
                                global_fieldref_table [key] = fieldref;
                        }
                        
                        return fieldref;
                }