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

◆ ComparePosition() [1/2]

override XmlNodeOrder MS.Internal.Xml.Cache.XPathDocumentNavigator.ComparePosition ( XPathNavigator other)
inline

Definition at line 533 of file XPathDocumentNavigator.cs.

534 {
536 {
538 XPathDocument document2 = xPathDocumentNavigator._pageCurrent[xPathDocumentNavigator._idxCurrent].Document;
539 if (document == document2)
540 {
541 int num = GetPrimaryLocation();
542 int num2 = xPathDocumentNavigator.GetPrimaryLocation();
543 if (num == num2)
544 {
545 num = GetSecondaryLocation();
546 num2 = xPathDocumentNavigator.GetSecondaryLocation();
547 if (num == num2)
548 {
549 return XmlNodeOrder.Same;
550 }
551 }
552 if (num >= num2)
553 {
554 return XmlNodeOrder.After;
555 }
556 return XmlNodeOrder.Before;
557 }
558 }
559 return XmlNodeOrder.Unknown;
560 }
XPathDocumentNavigator(XPathNode[] pageCurrent, int idxCurrent, XPathNode[] pageParent, int idxParent)

References MS.Internal.Xml.Cache.XPathDocumentNavigator._idxCurrent, MS.Internal.Xml.Cache.XPathDocumentNavigator._pageCurrent, System.Xml.Dictionary, MS.Internal.Xml.Cache.XPathNode.Document, MS.Internal.Xml.Cache.XPathDocumentNavigator.GetPrimaryLocation(), and MS.Internal.Xml.Cache.XPathDocumentNavigator.GetSecondaryLocation().