Ejemplo n.º 1
0
        public bool IsDefined(IType attributeType)
        {
            ExternalType type = attributeType as ExternalType;

            if (null == type)
            {
                return(false);
            }
            return(MetadataUtil.IsAttributeDefined(_type, type.ActualType));
        }
Ejemplo n.º 2
0
        public virtual bool IsSubclassOf(IType other)
        {
            ExternalType external = other as ExternalType;

            if (null == external /*|| _typeSystemServices.VoidType == other*/)
            {
                return(false);
            }

            return(_type.IsSubclassOf(external._type) ||
                   (external.IsInterface && external._type.IsAssignableFrom(_type))
                   );
        }
Ejemplo n.º 3
0
        public virtual bool IsAssignableFrom(IType other)
        {
            ExternalType external = other as ExternalType;

            if (null == external)
            {
                if (EntityType.Null == other.EntityType)
                {
                    return(!IsValueType);
                }
                return(other.IsSubclassOf(this));
            }
            if (other == _provider.Map(Types.Void))
            {
                return(false);
            }
            return(_type.IsAssignableFrom(external._type));
        }