CodeQL library for C#
codeql/csharp-all 0.9.2-dev (changelog, source)
Search

Class ComparisonKind

A comparison kind. Either equality, inequality, less than, less than or equals, or ternary comparison.

Import path

import semmle.code.csharp.commons.ComparisonTest

Direct supertypes

Predicates

isCompare

Holds if this is a ternary comparison kind. That is, a comparison of the form compare(x, y, z), where z = 0 if x = y, z < 0 if x < y, and z > 0 if x > y, respectively.

isEquality

Holds if this is an equality kind (=).

isInequality

Holds if this is an inequality kind (!=).

isLessThan

Holds if this is a less than kind (<).

isLessThanEquals

Holds if this is a less than or equals kind (<=).

toString

Gets a textual representation of this comparison kind.