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

◆ CollectText()

static string System.Xml.XPath.XNodeNavigator.CollectText ( XText n)
inlinestaticprivate

Definition at line 637 of file XNodeNavigator.cs.

638 {
639 string text = n.Value;
640 if (n.GetParent() != null)
641 {
642 foreach (XNode item in n.NodesAfterSelf())
643 {
644 if (!(item is XText xText))
645 {
646 break;
647 }
648 text += xText.Value;
649 }
650 }
651 return text;
652 }
IEnumerable< XNode > NodesAfterSelf()
Definition XNode.cs:220

References System.Xml.Dictionary, System.item, System.Xml.Linq.XNode.NodesAfterSelf(), and System.text.