37 references to ComparisonOperator
System.Data.SqlXml (37)
System\Xml\Xsl\Runtime\XsltLibrary.cs (31)
278
private static bool CompareNumbers(
ComparisonOperator
op, double left, double right) {
280
case
ComparisonOperator
.Eq: return left == right;
281
case
ComparisonOperator
.Ne: return left != right;
282
case
ComparisonOperator
.Lt: return left < right;
283
case
ComparisonOperator
.Le: return left <= right;
284
case
ComparisonOperator
.Gt: return left > right;
289
private static bool CompareValues(
ComparisonOperator
op, XPathItem left, XPathItem right, TypeCode compType) {
293
Debug.Assert(op ==
ComparisonOperator
.Eq || op ==
ComparisonOperator
.Ne);
295
return (XsltConvert.ToString(left) == XsltConvert.ToString(right)) == (op ==
ComparisonOperator
.Eq);
298
return (XsltConvert.ToBoolean(left) == XsltConvert.ToBoolean(right)) == (op ==
ComparisonOperator
.Eq);
303
private static bool CompareNodeSetAndValue(
ComparisonOperator
op, IList<XPathNavigator> nodeset, XPathItem val, TypeCode compType) {
319
private static bool CompareNodeSetAndNodeSet(
ComparisonOperator
op, IList<XPathNavigator> left, IList<XPathNavigator> right, TypeCode compType) {
333
ComparisonOperator
op = (
ComparisonOperator
)opCode;
334
Debug.Assert(op ==
ComparisonOperator
.Eq || op ==
ComparisonOperator
.Ne);
361
private static
ComparisonOperator
InvertOperator(
ComparisonOperator
op) {
363
case
ComparisonOperator
.Lt: return
ComparisonOperator
.Gt;
364
case
ComparisonOperator
.Le: return
ComparisonOperator
.Ge;
365
case
ComparisonOperator
.Gt: return
ComparisonOperator
.Lt;
366
case
ComparisonOperator
.Ge: return
ComparisonOperator
.Le;
372
ComparisonOperator
op = (
ComparisonOperator
)opCode;
373
Debug.Assert(
ComparisonOperator
.Lt <= op && op <=
ComparisonOperator
.Ge);
System\Xml\Xsl\XPath\XPathQilFactory.cs (6)
129
case QilNodeType.Eq: opCode = (double)XsltLibrary.
ComparisonOperator
.Eq; break;
130
default: opCode = (double)XsltLibrary.
ComparisonOperator
.Ne; break;
144
case QilNodeType.Lt: opCode = (double)XsltLibrary.
ComparisonOperator
.Lt; break;
145
case QilNodeType.Le: opCode = (double)XsltLibrary.
ComparisonOperator
.Le; break;
146
case QilNodeType.Gt: opCode = (double)XsltLibrary.
ComparisonOperator
.Gt; break;
147
default: opCode = (double)XsltLibrary.
ComparisonOperator
.Ge; break;