HandCoded.Xml.NodeIndex.IsDerived C# (CSharp) Method

IsDerived() private method

Walks up the type inheritance structure to determine if the indicated XmlSchemaType is derived from the named type.
private IsDerived ( XmlQualifiedName name, XmlSchemaType type ) : bool
name System.Xml.XmlQualifiedName The target parent type.
type System.Xml.Schema.XmlSchemaType The type being tested.
return bool
        private bool IsDerived(XmlQualifiedName name, XmlSchemaType type)
        {
            while ((type = type.BaseXmlSchemaType) != null) {
                if (type.QualifiedName.Equals (name))
                    return (true);
            }
            return (false);
        }