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;
}