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

◆ MoveToAttribute()

override bool System.Xml.XPath.XNodeNavigator.MoveToAttribute ( string localName,
string namespaceName )
inlinevirtual

Reimplemented from System.Xml.XPath.XPathNavigator.

Definition at line 284 of file XNodeNavigator.cs.

285 {
287 {
288 foreach (XAttribute item in xElement.Attributes())
289 {
290 if (item.Name.LocalName == localName && item.Name.NamespaceName == namespaceName && !item.IsNamespaceDeclaration)
291 {
292 _source = item;
293 return true;
294 }
295 }
296 }
297 return false;
298 }

References System.Xml.XPath.XNodeNavigator._source, System.Xml.Dictionary, and System.item.