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

◆ MoveToPrevious() [1/3]

override bool System.Xml.XPath.XNodeNavigator.MoveToPrevious ( )
inline

Definition at line 594 of file XNodeNavigator.cs.

595 {
596 if (_source is XNode xNode)
597 {
598 XContainer parent = xNode.GetParent();
599 if (parent != null)
600 {
601 XNode xNode2 = null;
602 foreach (XNode item in parent.Nodes())
603 {
604 if (item == xNode)
605 {
606 if (xNode2 != null)
607 {
608 _source = xNode2;
609 return true;
610 }
611 return false;
612 }
613 if (IsContent(parent, item))
614 {
615 xNode2 = item;
616 }
617 }
618 }
619 }
620 return false;
621 }
IEnumerable< XNode > Nodes()
static bool IsContent(XContainer c, XNode n)

References System.Xml.XPath.XNodeNavigator._source, System.Xml.Dictionary, System.Xml.XPath.XNodeNavigator.IsContent(), System.item, and System.Xml.Linq.XContainer.Nodes().