Пример #1
0
        public override TypeDesc GetTypeDefinition()
        {
            TypeDesc result = this;

            TypeDesc parameterDef = this.ParameterType.GetTypeDefinition();

            if (parameterDef != this.ParameterType)
            {
                result = parameterDef.MakeByRefType();
            }

            return(result);
        }
Пример #2
0
        public override TypeDesc InstantiateSignature(Instantiation typeInstantiation, Instantiation methodInstantiation)
        {
            TypeDesc instantiatedParameterType = this.ParameterType.InstantiateSignature(typeInstantiation, methodInstantiation);

            return(instantiatedParameterType.MakeByRefType());
        }