A method constructed by supplying type arguments to a generic method, involving internal types.
Constructed methods constructed from external generic methods with external type parameters are themselves external, and are represented as ExternalMethod instances. All other cases are represented by this type.
Inheritance: IMethod, IConstructedMethodInfo
コード例 #1
0
        public IMethod ConstructMethod(IType[] arguments)
        {
            IMethod constructed = null;

            if (!_constructedMethods.TryGetValue(arguments, out constructed))
            {
                constructed = new GenericConstructedMethod(_typeSystemServices, this, arguments);
                _constructedMethods.Add(arguments, constructed);
            }

            return(constructed);
        }
コード例 #2
0
        public IMethod ConstructMethod(IType[] arguments)
        {
            IMethod constructed = null;
            if (!_constructedMethods.TryGetValue(arguments, out constructed))
            {
                constructed = new GenericConstructedMethod(_typeSystemServices, this, arguments);
                _constructedMethods.Add(arguments, constructed);
            }

            return constructed;
        }