Boo.Lang.Compiler.TypeSystem.InternalClass.IsSubclassOf C# (CSharp) Method

IsSubclassOf() public method

public IsSubclassOf ( IType type ) : bool
type IType
return bool
        public override bool IsSubclassOf(IType type)
        {
            foreach (TypeReference baseTypeReference in _node.BaseTypes)
            {
                IType baseType = TypeSystemServices.GetType(baseTypeReference);
                if (type == baseType || baseType.IsSubclassOf(type))
                {
                    return true;
                }
            }
            return _typeSystemServices.IsSystemObject(type);
        }