private static XPathNodeType ConvertNodeType(XmlNodeType xmlNodeType) {
XPathNodeType xpathNodeType = XmlNodeType2XPathNodeType[ (int)xmlNodeType ];
if (xpathNodeType == (XPathNodeType) (-1)) {
Debug.Fail("We must not step on this node");
return XPathNodeType.All;
}
return xpathNodeType;
}