Table of Contents

Class BinaryOperatorBuilder

Namespace
Bonsai.Expressions
Assembly
Bonsai.Core.dll

Provides a base class for expression builders that define a simple binary operator on paired elements of an observable sequence. This is an abstract class.

public abstract class BinaryOperatorBuilder : SelectBuilder, IPropertyMappingBuilder, IExpressionBuilder, ICustomTypeDescriptor
Inheritance
BinaryOperatorBuilder
Implements
Derived
Inherited Members
Extension Methods

Properties

Operand

Gets or sets the value of the right hand operand which will be paired with elements of the observable sequence in case the sequence itself is not composed of paired elements.

[Browsable(false)]
public WorkflowProperty Operand { get; set; }

Property Value

WorkflowProperty

Methods

BuildSelector(Expression)

Returns the expression that maps the specified input parameter to the selector result.

protected override Expression BuildSelector(Expression expression)

Parameters

expression Expression

The input parameter to the selector.

Returns

Expression

The Expression that maps the input parameter to the selector result.

BuildSelector(Expression, Expression)

When overridden in a derived class, returns the expression that applies a binary operator to the left and right parameters.

protected abstract Expression BuildSelector(Expression left, Expression right)

Parameters

left Expression

The left input parameter.

right Expression

The right input parameter.

Returns

Expression

The Expression that applies the binary operator to the left and right parameters.