Пример #1
0
 public GenericMethodRef(BaseMethodRef meth, GenericMethodSig sig)
     : base(null, meth.CallConv, null, "", null, 0)
 {
     this.meth   = meth;
     this.sig    = sig;
     is_resolved = false;
 }
Пример #2
0
 public GenericMethodRef (BaseMethodRef meth, GenericMethodSig sig)
         : base (null, meth.CallConv, null, "", null, 0)
 {
         this.meth = meth;
         this.sig = sig;
         is_resolved = false;
 }
Пример #3
0
        public static GenericMethodSig GetInstance(GenericArguments gen_args)
        {
            GenericMethodSig sig = null;

            if (sig_table == null)
            {
                sig_table = new Hashtable();
            }
            else
            {
                sig = (GenericMethodSig)sig_table [gen_args.ToString()];
            }

            if (sig == null)
            {
                sig = new GenericMethodSig(gen_args);
                sig_table [gen_args.ToString()] = sig;
            }

            return(sig);
        }
Пример #4
0
        public GenericMethodRef GetGenericMethodRef(GenericArguments gen_args)
        {
            GenericMethodRef methref = null;

            if (gen_method_table == null)
            {
                gen_method_table = new Hashtable();
            }
            else
            {
                methref = (GenericMethodRef)gen_method_table [gen_args.ToString()];
            }

            if (methref == null)
            {
                methref = new GenericMethodRef(this, GenericMethodSig.GetInstance(gen_args));
                gen_method_table [gen_args.ToString()] = methref;
            }

            return(methref);
        }