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

◆ IsValidChildType()

bool System.Xml.XPath.XPathNavigator.IsValidChildType ( XPathNodeType type)
inlineprivateinherited

Definition at line 1838 of file XPathNavigator.cs.

1839 {
1840 switch (NodeType)
1841 {
1842 case XPathNodeType.Root:
1843 if (type == XPathNodeType.Element || (uint)(type - 5) <= 3u)
1844 {
1845 return true;
1846 }
1847 break;
1848 case XPathNodeType.Element:
1849 if (type == XPathNodeType.Element || (uint)(type - 4) <= 4u)
1850 {
1851 return true;
1852 }
1853 break;
1854 }
1855 return false;
1856 }

References System.Xml.XPath.XPathNavigator.NodeType, and System.type.

Referenced by System.Xml.XPath.XPathNavigator.AppendChild(), and System.Xml.XPath.XPathNavigator.PrependChild().