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

◆ IsValidSiblingType()

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

Definition at line 1858 of file XPathNavigator.cs.

1859 {
1860 XPathNodeType nodeType = NodeType;
1861 if ((nodeType == XPathNodeType.Element || (uint)(nodeType - 4) <= 4u) && (type == XPathNodeType.Element || (uint)(type - 4) <= 4u))
1862 {
1863 return true;
1864 }
1865 return false;
1866 }

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

Referenced by System.Xml.XPath.XPathNavigator.InsertAfter(), and System.Xml.XPath.XPathNavigator.InsertBefore().