Class IndexBuilder
- Namespace
- Bonsai.Expressions
- Assembly
- Bonsai.Core.dll
Represents an expression builder that applies an index operator to the elements of an observable sequence.
Note
If the operator is applied to a sequence of single values, a workflow property will be inferred based on compatible operator overloads and exposed in the property grid. The value of this property will be used as the argument when applying the operator to the elements in the source sequence.
If the operator is applied to a sequence of pairs of values, the second element in the pair is considered to be the argument to the operator.
public class IndexBuilder : BinaryOperatorBuilder, IPropertyMappingBuilder, IExpressionBuilder, ICustomTypeDescriptor
- Inheritance
-
IndexBuilder
- Implements
- Inherited Members
- Extension Methods
Methods
BuildSelector(Expression)
Returns the expression that maps the specified input parameter to the selector result.
protected override Expression BuildSelector(Expression expression)
Parameters
expression
ExpressionThe input parameter to the selector.
Returns
- Expression
The Expression that maps the input parameter to the selector result.
BuildSelector(Expression, Expression)
Returns the expression that applies an index operator to the left and right parameters.
protected override Expression BuildSelector(Expression left, Expression right)
Parameters
left
ExpressionThe left input parameter.
right
ExpressionThe right input parameter.
Returns
- Expression
The Expression that applies an index operator to the left and right parameters.