Exemplo n.º 1
0
        public override bool IsSubclassOf(Type type)
        {
            if ((object)type == null)
            {
                throw new ArgumentNullException("type");
            }
            Contract.EndContractBlock();
            RuntimeType rtType = type as RuntimeType;

            if (rtType == null)
            {
                return(false);
            }

            return(RuntimeTypeHandle.IsSubclassOf(this, rtType));
        }