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

MoveToNextNamespaceLocal() private static méthode

private static MoveToNextNamespaceLocal ( XmlAttributeCollection attributes, int &index ) : bool
attributes XmlAttributeCollection
index int
Résultat bool
        private static bool MoveToNextNamespaceLocal(XmlAttributeCollection attributes, ref int index) {
            Debug.Assert(attributes != null);
            Debug.Assert(0 <= index && index < attributes.Count);
            for (int i = index - 1; i >= 0; i--) {
                XmlAttribute attribute = attributes[i];
                if (attribute.IsNamespace) {
                    index = i;
                    return true;
                }
            }
            return false;
        }