Esempio n. 1
0
        public MethodDesc GetOrAddMethod(string name, MethodSignature signature)
        {
            MethodDesc method = GetMethod(name, signature);

            if (method == null)
            {
                TypeRefTypeSystemMethod newMethod = new TypeRefTypeSystemMethod(this, name, signature);
                method = newMethod;
                _methods.Add(newMethod);
            }

            return(method);
        }
Esempio n. 2
0
 internal TypeRefTypeSystemGenericParameter(TypeRefTypeSystemMethod owningMethod, int index)
 {
     _owningMethod = owningMethod;
     _index        = index;
 }