BinaryOperator

Overview

The BinaryOperator enumeration denotes the binary operator applied to operands of a BinaryExpression expression.

For example in this code snippet BinaryOperator value is used to represent equality operand:

WhereExpression where = new BinaryExpression(
                          new FieldExpression("ID"), 
                          new ConstantExpression(42), 
                          BinaryOperator.Equal);

The BinaryOperator enumeration is widely used when Dynamic Where expressions are created in code.

The following table shows how BinaryOperator values are translated into human-readable expressions.

Location


Value Description
Addition
And
Divide
Equal
Greater
GreaterOrEqual
In
Less
LessOrEqual
Like
Multiply
NotEqual
NotIn
Or
Subtraction
Xor