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

◆ GetElemNav() [2/2]

XPathNavigator System.Xml.XPath.XPathNavigatorReader.GetElemNav ( out int depth)
inlineprivate

Definition at line 352 of file XPathNavigatorReader.cs.

353 {
354 XPathNavigator xPathNavigator = null;
355 switch (_state)
356 {
357 case State.Content:
358 if (_nodeType == XmlNodeType.Element)
359 {
361 }
362 depth = _depth;
363 break;
364 case State.Attribute:
366 xPathNavigator.MoveToParent();
367 depth = _depth - 1;
368 break;
369 case State.AttrVal:
371 xPathNavigator.MoveToParent();
372 depth = _depth - 2;
373 break;
374 case State.InReadBinary:
377 _state = State.InReadBinary;
378 break;
379 default:
380 depth = _depth;
381 break;
382 }
383 return xPathNavigator;
384 }

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