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

◆ MoveToAttribute() [2/4]

override bool System.Xml.XPath.XPathNavigatorReader.MoveToAttribute ( string localName,
string namespaceName )
inline

Definition at line 551 of file XPathNavigatorReader.cs.

552 {
553 if (localName == null)
554 {
555 throw new ArgumentNullException("localName");
556 }
557 int depth = _depth;
558 XPathNavigator elemNav = GetElemNav(out depth);
559 if (elemNav != null)
560 {
561 if (namespaceName == "http://www.w3.org/2000/xmlns/")
562 {
563 if (localName == "xmlns")
564 {
565 localName = string.Empty;
566 }
567 if (!elemNav.MoveToFirstNamespace(XPathNamespaceScope.Local))
568 {
569 goto IL_0078;
570 }
571 while (!(elemNav.LocalName == localName))
572 {
573 if (elemNav.MoveToNextNamespace(XPathNamespaceScope.Local))
574 {
575 continue;
576 }
577 goto IL_0078;
578 }
579 }
580 else
581 {
582 if (namespaceName == null)
583 {
584 namespaceName = string.Empty;
585 }
586 if (!elemNav.MoveToAttribute(localName, namespaceName))
587 {
588 goto IL_0078;
589 }
590 }
591 if (_state == State.InReadBinary)
592 {
595 }
596 MoveToAttr(elemNav, depth + 1);
597 return true;
598 }
599 goto IL_0078;
600 IL_0078:
601 return false;
602 }
void MoveToAttr(XPathNavigator nav, int depth)
ReadContentAsBinaryHelper _readBinaryHelper

References System.Xml.XPath.XPathNavigatorReader._depth, System.Xml.XPath.XPathNavigatorReader._readBinaryHelper, System.Xml.XPath.XPathNavigatorReader._savedState, System.Xml.XPath.XPathNavigatorReader._state, System.Xml.Dictionary, System.Xml.ReadContentAsBinaryHelper.Finish(), System.Xml.XPath.XPathNavigatorReader.GetElemNav(), and System.Xml.XPath.XPathNavigatorReader.MoveToAttr().