private bool IsPrimitiveNumeric(XmlQueryType typ) { if (typ == XmlQueryTypeFactory.IntX) return true; if (typ == XmlQueryTypeFactory.IntegerX) return true; if (typ == XmlQueryTypeFactory.DecimalX) return true; if (typ == XmlQueryTypeFactory.FloatX) return true; if (typ == XmlQueryTypeFactory.DoubleX) return true; return false; }