Esempio n. 1
0
 public bool IsSubclassOf(HybType other)
 {
     if (other.IsCompiledType)
     {
         if (IsCompiledType)
         {
             return(CompiledType
                    .IsSubclassOf(other.CompiledType));
         }
         return(false);
     }
     return(false);
 }
Esempio n. 2
0
        public bool IsSubclassOf(Type other)
        {
            if (IsCompiledType)
            {
                return(CompiledType.IsSubclassOf(other));
            }

            var type = Parent;

            while (type != null)
            {
                if (type.IsCompiledType &&
                    type.CompiledType == other)
                {
                    return(true);
                }
                type = type.Parent;
            }
            return(false);
        }