ClassComparisonOperatorExpression
Base class for comparison operators (=, <>, <, >, <=, >=) that compare two constant expressions and return a boolean result.
Definition
Namespace:Telerik.Windows.Documents.Spreadsheet.Expressions
Assembly:Telerik.Windows.Documents.Spreadsheet.dll
Syntax:
public abstract class ComparisonOperatorExpression : BinaryOperatorExpression<ConstantExpression>
Inheritance: objectRadExpressionOperatorExpressionBinaryOperatorExpression<ConstantExpression>ComparisonOperatorExpression
Derived Classes:
Inherited Members
Constructors
ComparisonOperatorExpression(RadExpression, RadExpression)
Initializes a new instance of the ComparisonOperatorExpression class with left and right operands.
Declaration
protected ComparisonOperatorExpression(RadExpression left, RadExpression right)
Parameters
left
The left.
right
The right.
Properties
OperandsType
Gets the type of the operands.
Declaration
public override ArgumentType OperandsType { get; }
Property Value
The type of the operands as ArgumentType.
Overrides
Methods
CompareBooleanExpressions(BooleanExpression, BooleanExpression)
Compares the boolean expressions.
Declaration
protected abstract bool CompareBooleanExpressions(BooleanExpression left, BooleanExpression right)
Parameters
left
The left.
right
The right.
Returns
Boolean result.
CompareDifferentTypeExpressions(ConstantExpression, ConstantExpression)
Compares the different type expressions.
Declaration
protected abstract bool CompareDifferentTypeExpressions(ConstantExpression leftOperandValue, ConstantExpression rightOperandValue)
Parameters
leftOperandValue
The left operand value.
rightOperandValue
The right operand value.
Returns
Boolean result.
CompareEmptyExpressions(EmptyExpression, EmptyExpression)
Compares the empty expressions.
Declaration
protected abstract bool CompareEmptyExpressions(EmptyExpression left, EmptyExpression right)
Parameters
left
The left.
right
The right.
Returns
Boolean result.
CompareNumberExpressions(NumberExpression, NumberExpression)
Compares the number expressions.
Declaration
protected abstract bool CompareNumberExpressions(NumberExpression left, NumberExpression right)
Parameters
left
The left.
right
The right.
Returns
Boolean result.
CompareStringExpressions(StringExpression, StringExpression)
Compares the string expressions.
Declaration
protected abstract bool CompareStringExpressions(StringExpression left, StringExpression right)
Parameters
left
The left.
right
The right.
Returns
Boolean result.
GetValueOverride(ConstantExpression[])
Compares the two operands using type-specific comparison logic and returns a boolean expression.
Declaration
protected override RadExpression GetValueOverride(ConstantExpression[] operands)
Parameters
operands
The operands of type T.
Returns
Value as RadExpression.
Overrides