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

◆ HasNodeTypeInPrevSiblings()

bool System.Xml.XmlDocument.HasNodeTypeInPrevSiblings ( XmlNodeType nt,
XmlNode refNode )
inlineprivate

Definition at line 651 of file XmlDocument.cs.

652 {
653 if (refNode == null)
654 {
655 return false;
656 }
657 XmlNode xmlNode = null;
658 if (refNode.ParentNode != null)
659 {
660 xmlNode = refNode.ParentNode.FirstChild;
661 }
662 while (xmlNode != null)
663 {
664 if (xmlNode.NodeType == nt)
665 {
666 return true;
667 }
668 if (xmlNode == refNode)
669 {
670 break;
671 }
672 xmlNode = xmlNode.NextSibling;
673 }
674 return false;
675 }

Referenced by System.Xml.XmlDocument.CanInsertAfter(), and System.Xml.XmlDocument.CanInsertBefore().