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