System.Linq.Expressions.BinaryExpression Class

Represents an expression that has a binary operator.

See Also: BinaryExpression Members

Syntax

[System.Diagnostics.DebuggerTypeProxy(typeof(System.Linq.Expressions.Expression/BinaryExpressionProxy))]
public class BinaryExpression : Expression

Remarks

The following tables summarize the factory methods that can be used to create a System.Linq.Expressions.BinaryExpression that has a specific node type, represented by the Expression.NodeType property. Each table contains information for a specific class of operations such as arithmetic or bitwise.

Binary Arithmetic Operations

ExpressionType.Add

erload:System.Linq.Expressions.Expression.Add

ExpressionType.AddChecked

erload:System.Linq.Expressions.Expression.AddChecked

ExpressionType.Divide

erload:System.Linq.Expressions.Expression.Divide

ExpressionType.Modulo

erload:System.Linq.Expressions.Expression.Modulo

ExpressionType.Multiply

erload:System.Linq.Expressions.Expression.Multiply

ExpressionType.MultiplyChecked

erload:System.Linq.Expressions.Expression.MultiplyChecked

ExpressionType.Power

erload:System.Linq.Expressions.Expression.Power

ExpressionType.Subtract

erload:System.Linq.Expressions.Expression.Subtract

ExpressionType.SubtractChecked

erload:System.Linq.Expressions.Expression.SubtractChecked

Bitwise Operations

ExpressionType.And

erload:System.Linq.Expressions.Expression.And

ExpressionType.Or

erload:System.Linq.Expressions.Expression.Or

ExpressionType.ExclusiveOr

erload:System.Linq.Expressions.Expression.ExclusiveOr

Shift Operations

ExpressionType.LeftShift

erload:System.Linq.Expressions.Expression.LeftShift

ExpressionType.RightShift

erload:System.Linq.Expressions.Expression.RightShift

Conditional Boolean Operations

ExpressionType.AndAlso

erload:System.Linq.Expressions.Expression.AndAlso

ExpressionType.OrElse

erload:System.Linq.Expressions.Expression.OrElse

Comparison Operations

ExpressionType.Equal

erload:System.Linq.Expressions.Expression.Equal

ExpressionType.NotEqual

erload:System.Linq.Expressions.Expression.NotEqual

ExpressionType.GreaterThanOrEqual

erload:System.Linq.Expressions.Expression.GreaterThanOrEqual

ExpressionType.GreaterThan

erload:System.Linq.Expressions.Expression.GreaterThan

ExpressionType.LessThan

erload:System.Linq.Expressions.Expression.LessThan

ExpressionType.LessThanOrEqual

erload:System.Linq.Expressions.Expression.LessThanOrEqual

Coalescing Operations

ExpressionType.Coalesce

Expression.Coalesce(Expression, Expression)

Array Indexing Operations

ExpressionType.ArrayIndex

Expression.ArrayIndex(Expression, Expression)

In addition, the erload:System.Linq.Expressions.Expression.MakeBinary methods can also be used to create a System.Linq.Expressions.BinaryExpression. These factory methods can be used to create a System.Linq.Expressions.BinaryExpression of any node type that represents a binary operation. The parameter of these methods that is of type Expression.NodeType specifies the desired node type.

Requirements

Namespace: System.Linq.Expressions
Assembly: System.Core (in System.Core.dll)
Assembly Versions: 3.5.0.0, 4.0.0.0