public bool IsSubclassOf(HybType other) { if (other.IsCompiledType) { if (IsCompiledType) { return(CompiledType .IsSubclassOf(other.CompiledType)); } return(false); } return(false); }
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); }