Table of Contents

Class CombinatorExpressionBuilder

Namespace
Bonsai.Expressions
Assembly
Bonsai.Core.dll

Provides a base class for expression builders that will generate combinator outputs that can be combined with dynamic property mappings. This is an abstract class.

public abstract class CombinatorExpressionBuilder : VariableArgumentExpressionBuilder, IPropertyMappingBuilder, IExpressionBuilder
Inheritance
CombinatorExpressionBuilder
Implements
Derived
Inherited Members
Extension Methods

Constructors

CombinatorExpressionBuilder(int, int)

Initializes a new instance of the CombinatorExpressionBuilder class with the specified argument range.

protected CombinatorExpressionBuilder(int minArguments, int maxArguments)

Parameters

minArguments int

The inclusive lower bound of the argument range.

maxArguments int

The inclusive upper bound of the argument range.

Methods

Build(IEnumerable<Expression>)

Generates an Expression node from a collection of input arguments. The result can be chained with other builders in a workflow.

public override Expression Build(IEnumerable<Expression> arguments)

Parameters

arguments IEnumerable<Expression>

A collection of Expression nodes that represents the input arguments.

Returns

Expression

An Expression tree node.

BuildCombinator(IEnumerable<Expression>)

When overridden in a derived class, generates an Expression node that will be combined with any existing property mappings to produce the final output of the expression builder.

protected abstract Expression BuildCombinator(IEnumerable<Expression> arguments)

Parameters

arguments IEnumerable<Expression>

A collection of Expression nodes that represents the input arguments.

Returns

Expression

An Expression tree node that represents the combinator output.