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

◆ GetElementsBeforeSelf()

IEnumerable< XElement > System.Xml.Linq.XNode.GetElementsBeforeSelf ( XName name)
inlineprivateinherited

Definition at line 475 of file XNode.cs.

476 {
477 if (parent == null)
478 {
479 yield break;
480 }
482 do
483 {
484 i = i.next;
485 if (i != this)
486 {
487 if (i is XElement xElement && (name == null || xElement.name == name))
488 {
489 yield return xElement;
490 }
491 continue;
492 }
493 break;
494 }
495 while (parent != null && parent == i.parent);
496 }
XContainer parent
Definition XObject.cs:7

References System.Xml.Linq.XNode.XNode(), System.Xml.Linq.XContainer.content, System.Xml.Dictionary, and System.Xml.Linq.XObject.parent.

Referenced by System.Xml.Linq.XNode.ElementsBeforeSelf(), and System.Xml.Linq.XNode.ElementsBeforeSelf().