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

IsSubclassOf() public method

public IsSubclassOf ( IType other ) : bool
other IType
return bool
        public bool IsSubclassOf(IType other)
        {
            if (BaseType != null && (BaseType == other || BaseType.IsSubclassOf(other)))
            {
                return true;
            }

            if (other.IsInterface && Array.Exists(
                GetInterfaces(),
                delegate(IType i) { return other.IsAssignableFrom(i); }))
            {
                return true;
            }

            return false;
        }