Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ HasNamespaceDeclarationInScope()

static bool System.Xml.XPath.XNodeNavigator.HasNamespaceDeclarationInScope ( XAttribute a,
XElement e )
inlinestaticprivate

Definition at line 766 of file XNodeNavigator.cs.

767 {
768 XName name = a.Name;
769 XElement xElement = e;
770 while (xElement != null && xElement != a.GetParent())
771 {
772 if (xElement.Attribute(name) != null)
773 {
774 return true;
775 }
777 }
778 return false;
779 }

References System.Xml.Dictionary, and System.Xml.Linq.XObject.Parent.

Referenced by System.Xml.XPath.XNodeNavigator.MoveToNextNamespace().