Exemple #1
0
        public CallableSignature GetSignature()
        {
            if (_signature == null)
            {
                CallableSignature definitionSignature = ((ICallableType)_definition).GetSignature();

                IParameter[] parameters = GenericMapping.MapParameters(definitionSignature.Parameters);
                IType        returnType = GenericMapping.MapType(definitionSignature.ReturnType);

                _signature = new CallableSignature(parameters, returnType);
            }

            return(_signature);
        }
Exemple #2
0
 public bool IsDefined(IType attributeType)
 {
     return(_sourceType.IsDefined(GenericMapping.MapType(attributeType)));
 }
Exemple #3
0
 public bool IsDefined(IType attributeType)
 {
     return(_definition.IsDefined(GenericMapping.MapType(attributeType)));
 }
Exemple #4
0
 IType IConstructedTypeInfo.Map(IType type)
 {
     return(GenericMapping.MapType(type));
 }