37 references to ComparisonOperator
System.Private.Xml (37)
System\Xml\Xsl\Runtime\XsltLibrary.cs (31)
365private static bool CompareNumbers(ComparisonOperator op, double left, double right) => 368ComparisonOperator.Eq => left == right, 369ComparisonOperator.Ne => left != right, 370ComparisonOperator.Lt => left < right, 371ComparisonOperator.Le => left <= right, 372ComparisonOperator.Gt => left > right, 376private static bool CompareValues(ComparisonOperator op, XPathItem left, XPathItem right, TypeCode compType) 384Debug.Assert(op == ComparisonOperator.Eq || op == ComparisonOperator.Ne); 387return (XsltConvert.ToString(left) == XsltConvert.ToString(right)) == (op == ComparisonOperator.Eq); 392return (XsltConvert.ToBoolean(left) == XsltConvert.ToBoolean(right)) == (op == ComparisonOperator.Eq); 397private static bool CompareNodeSetAndValue(ComparisonOperator op, IList<XPathNavigator> nodeset, XPathItem val, TypeCode compType) 419private static bool CompareNodeSetAndNodeSet(ComparisonOperator op, IList<XPathNavigator> left, IList<XPathNavigator> right, TypeCode compType) 438ComparisonOperator op = (ComparisonOperator)opCode; 439Debug.Assert(op == ComparisonOperator.Eq || op == ComparisonOperator.Ne); 474private static ComparisonOperator InvertOperator(ComparisonOperator op) => 477ComparisonOperator.Lt => ComparisonOperator.Gt, 478ComparisonOperator.Le => ComparisonOperator.Ge, 479ComparisonOperator.Gt => ComparisonOperator.Lt, 480ComparisonOperator.Ge => ComparisonOperator.Le, 486ComparisonOperator op = (ComparisonOperator)opCode; 487Debug.Assert(ComparisonOperator.Lt <= op && op <= ComparisonOperator.Ge);
System\Xml\Xsl\XPath\XPathQilFactory.cs (6)
139QilNodeType.Eq => (double)XsltLibrary.ComparisonOperator.Eq, 140_ => (double)XsltLibrary.ComparisonOperator.Ne, 155QilNodeType.Lt => (double)XsltLibrary.ComparisonOperator.Lt, 156QilNodeType.Le => (double)XsltLibrary.ComparisonOperator.Le, 157QilNodeType.Gt => (double)XsltLibrary.ComparisonOperator.Gt, 158_ => (double)XsltLibrary.ComparisonOperator.Ge,