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

Module ComparisonOperation

Provides all comparison operation classes.

All comparison operations have the common base class ComparisonOperation.

Import path

import semmle.code.csharp.exprs.ComparisonOperation

Imports

Expr

Provides all expression classes.

Classes

ComparisonOperation

A comparison operation. Either an equality operation (EqualityOperation) or a relational operation (RelationalOperation).

EQExpr

An equals operation, for example x == y.

EqualityOperation

An equality operation. Either an equals operation (EQExpr) or a not-equals operation (NEExpr).

GEExpr

A greater-than or equals operation, for example x >= y.

GTExpr

A greater-than operation, for example x > y.

LEExpr

A less-than or equals operation, for example x <= y.

LTExpr

A less-than operation, for example x < y.

NEExpr

A not-equals operation, for example x != y.

RelationalOperation

A relational operation. Either a greater-than operation (GTExpr), a less-than operation (LTExpr), a greater-than or equals operation (GEExpr), or a less-than or equals operation (LEEexpr).