Class CombinatorExpressionBuilder
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.
Inheritance
Inherited Members
Namespace: Bonsai.Expressions
Assembly: Bonsai.Core.dll
Syntax
public abstract class CombinatorExpressionBuilder : VariableArgumentExpressionBuilder, IPropertyMappingBuilder, IExpressionBuilder
Constructors
| Improve this Doc View SourceCombinatorExpressionBuilder(Int32, Int32)
Initializes a new instance of the CombinatorExpressionBuilder class with the specified argument range.
Declaration
protected CombinatorExpressionBuilder(int minArguments, int maxArguments)
Parameters
Type | Name | Description |
---|---|---|
Int32 | minArguments | The inclusive lower bound of the argument range. |
Int32 | maxArguments | The inclusive upper bound of the argument range. |
Methods
| Improve this Doc View SourceBuild(IEnumerable<Expression>)
Generates an Expression node from a collection of input arguments. The result can be chained with other builders in a workflow.
Declaration
public override Expression Build(IEnumerable<Expression> arguments)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<Expression> | arguments | A collection of Expression nodes that represents the input arguments. |
Returns
Type | Description |
---|---|
Expression | An Expression tree node. |
Overrides
| Improve this Doc View SourceBuildCombinator(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.
Declaration
protected abstract Expression BuildCombinator(IEnumerable<Expression> arguments)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<Expression> | arguments | A collection of Expression nodes that represents the input arguments. |
Returns
Type | Description |
---|---|
Expression | An Expression tree node that represents the combinator output. |