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

◆ IsDescendant() [3/3]

static bool System.Xml.DocumentXPathNavigator.IsDescendant ( XmlNode top,
XmlNode bottom )
inlinestaticprivate

Definition at line 1868 of file DocumentXPathNavigator.cs.

1869 {
1870 while (true)
1871 {
1872 XmlNode xmlNode = bottom.ParentNode;
1873 if (xmlNode == null)
1874 {
1875 if (!(bottom is XmlAttribute xmlAttribute))
1876 {
1877 break;
1878 }
1879 xmlNode = xmlAttribute.OwnerElement;
1880 if (xmlNode == null)
1881 {
1882 break;
1883 }
1884 }
1885 bottom = xmlNode;
1886 if (top == bottom)
1887 {
1888 return true;
1889 }
1890 }
1891 return false;
1892 }

References System.Xml.Dictionary, and System.Xml.XmlNode.ParentNode.