System.Xml.DocumentXPathNavigator.MoveToNextNamespaceGlobal C# (CSharp) Méthode

MoveToNextNamespaceGlobal() private static méthode

private static MoveToNextNamespaceGlobal ( XmlAttributeCollection &attributes, int &index ) : bool
attributes XmlAttributeCollection
index int
Résultat bool
        private static bool MoveToNextNamespaceGlobal(ref XmlAttributeCollection attributes, ref int index) {
            if (MoveToNextNamespaceLocal(attributes, ref index)) {
                return true;
            }

            Debug.Assert(attributes != null && attributes.parent != null);
            XmlElement element = attributes.parent.ParentNode as XmlElement; 
            while (element != null) {
                if (element.HasAttributes) {
                    attributes = element.Attributes;
                    if (MoveToFirstNamespaceLocal(attributes, ref index)) {
                        return true;
                    }
                }
                element = element.ParentNode as XmlElement;
            }
            return false;
        }