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