Class BinaryExpression
- Assembly
- TimeCockpit.Data.dll
Abstract node type representing binary expressions. BinaryExpression acts as the node type for all binary operations. The semantics of such a node depends on the operator.
public class BinaryExpression : Expression
- Inheritance
-
ObjectBinaryExpression
- Inherited Members
-
Object.ToString()Object.Equals(Object)Object.Equals(Object, Object)Object.ReferenceEquals(Object, Object)Object.GetHashCode()Object.GetType()Object.MemberwiseClone()
Constructors
BinaryExpression(Expression, BinaryOperator, Expression)
Initializes a new instance of the BinaryExpression class.
public BinaryExpression(Expression left, BinaryOperator op, Expression right)
Parameters
leftExpressionThe left operand expression.
opBinaryOperatorThe operator combining the left and right operands.
rightExpressionThe right operand expression.
Properties
Left
Gets the left-hand operand of the expression.
public Expression Left { get; }
Property Value
Operator
Gets the operator of the binary expression.
public BinaryOperator Operator { get; }
Property Value
Right
Gets the right-hand operand of the expression.
public Expression Right { get; }
Property Value
Methods
Accept(Visitor)
Dispatches the correct VisitQuery(Query) call for this instance.
public override Node Accept(Visitor visitor)
Parameters
visitorVisitorThe visitor to dispatch.
Returns
- Node
Returns the value returned by the call to VisitQuery(Query).