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);
        }
Beispiel #2
0
 internal TypeRefTypeSystemGenericParameter(TypeRefTypeSystemMethod owningMethod, int index)
 {
     _owningMethod = owningMethod;
     _index        = index;
 }