New to Telerik Document ProcessingStart a free 30-day trial

Base class for comparison operators (=, <>, <, >, <=, >=) that compare two constant expressions and return a boolean result.

Definition

Constructors

Initializes a new instance of the ComparisonOperatorExpression class with left and right operands.

C#
protected ComparisonOperatorExpression(RadExpression left, RadExpression right, Workbook workbook = null)
Parameters:leftRadExpression

The left.

rightRadExpression

The right.

workbookWorkbook

The workbook.

Methods

Compares the boolean expressions.

C#
protected abstract bool CompareBooleanExpressions(BooleanExpression left, BooleanExpression right)
Parameters:leftBooleanExpression

The left.

rightBooleanExpression

The right.

Returns:

bool

Boolean result.

Compares the different type expressions.

C#
protected abstract bool CompareDifferentTypeExpressions(ConstantExpression leftOperandValue, ConstantExpression rightOperandValue)
Parameters:leftOperandValueConstantExpression

The left operand value.

rightOperandValueConstantExpression

The right operand value.

Returns:

bool

Boolean result.

Compares the empty expressions.

C#
protected abstract bool CompareEmptyExpressions(EmptyExpression left, EmptyExpression right)
Parameters:leftEmptyExpression

The left.

rightEmptyExpression

The right.

Returns:

bool

Boolean result.

Compares the number expressions.

C#
protected abstract bool CompareNumberExpressions(NumberExpression left, NumberExpression right)
Parameters:leftNumberExpression

The left.

rightNumberExpression

The right.

Returns:

bool

Boolean result.

Compares the string expressions.

C#
protected abstract bool CompareStringExpressions(StringExpression left, StringExpression right)
Parameters:leftStringExpression

The left.

rightStringExpression

The right.

Returns:

bool

Boolean result.

Compares the two operands using type-specific comparison logic and returns a boolean expression.

C#
protected override RadExpression GetValueOverride(ConstantExpression[] operands)
Parameters:operandsConstantExpression[]

The operands of type T.

Returns:

RadExpression

Value as RadExpression.

Overrides: BinaryOperatorExpression<ConstantExpression>.GetValueOverride(ConstantExpression[])

Properties

Gets the type of the operands.

C#
public override ArgumentType OperandsType { get; }
Property Value:

The type of the operands as ArgumentType.

Overrides: BinaryOperatorExpression<ConstantExpression>.OperandsType