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

◆ MoveToChild() [2/2]

override bool System.Xml.DocumentXPathNavigator.MoveToChild ( XPathNodeType type)
inlinevirtual

Reimplemented from System.Xml.XPath.XPathNavigator.

Definition at line 869 of file DocumentXPathNavigator.cs.

870 {
871 if (_source.NodeType == XmlNodeType.Attribute)
872 {
873 return false;
874 }
875 XmlNode xmlNode = FirstChild(_source);
876 if (xmlNode != null)
877 {
879 if (contentKindMask == 0)
880 {
881 return false;
882 }
883 do
884 {
885 if (((1 << (int)xmlNode.XPNodeType) & contentKindMask) != 0)
886 {
888 return true;
889 }
891 }
892 while (xmlNode != null);
893 }
894 return false;
895 }
static int GetContentKindMask(XPathNodeType type)
XmlNodeType NodeType
Definition XmlNode.cs:73

References System.Xml.DocumentXPathNavigator._source, System.Xml.Dictionary, System.Xml.DocumentXPathNavigator.FirstChild(), System.Xml.XPath.XPathNavigator.GetContentKindMask(), System.Xml.DocumentXPathNavigator.NextSibling(), System.Xml.XmlNode.NodeType, and System.type.