Example #1
0
        internal void AddMethod(MethodRef meth)
        {
            Contract.Requires(meth != null);
            MethodRef m = (MethodRef)GetMethodDesc(meth.Name(), meth.GetParTypes());

            if (m == null)
            {
                methods.Add(meth);
                meth.SetParent(this);
            }
        }
Example #2
0
 internal void AddMethod(MethodRef meth)
 {
     Contract.Requires(meth != null);
     MethodRef m = (MethodRef)GetMethodDesc(meth.Name(), meth.GetParTypes());
     if (m == null)
     {
         methods.Add(meth);
         meth.SetParent(this);
     }
 }