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

◆ GetElemNav() [1/2]

XPathNavigator System.Xml.XPath.XPathNavigatorReader.GetElemNav ( )
inlineprivate

Definition at line 325 of file XPathNavigatorReader.cs.

326 {
327 switch (_state)
328 {
329 case State.Content:
330 return _nav.Clone();
331 case State.Attribute:
332 case State.AttrVal:
333 {
334 XPathNavigator xPathNavigator = _nav.Clone();
335 if (xPathNavigator.MoveToParent())
336 {
337 return xPathNavigator;
338 }
339 break;
340 }
341 case State.InReadBinary:
342 {
344 XPathNavigator elemNav = GetElemNav();
345 _state = State.InReadBinary;
346 return elemNav;
347 }
348 }
349 return null;
350 }

References System.Xml.XPath.XPathNavigatorReader._nav, System.Xml.XPath.XPathNavigatorReader._savedState, System.Xml.XPath.XPathNavigatorReader._state, System.Xml.XPath.XPathNavigator.Clone(), System.Xml.Dictionary, and System.Xml.XPath.XPathNavigatorReader.GetElemNav().

Referenced by System.Xml.XPath.XPathNavigatorReader.GetAttribute(), System.Xml.XPath.XPathNavigatorReader.GetElemNav(), System.Xml.XPath.XPathNavigatorReader.GetElemNav(), System.Xml.XPath.XPathNavigatorReader.MoveToAttribute(), System.Xml.XPath.XPathNavigatorReader.MoveToAttribute(), and System.Xml.XPath.XPathNavigatorReader.MoveToFirstAttribute().