Table of Contents

Class GetValueOrDefaultBuilder

Namespace
Bonsai.Expressions
Assembly
Bonsai.Core.dll

Represents an expression builder that retrieves the value of each nullable element in the sequence, or the specified default value.

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 GetValueOrDefaultBuilder : BinaryOperatorBuilder, IPropertyMappingBuilder, IExpressionBuilder, ICustomTypeDescriptor
Inheritance
GetValueOrDefaultBuilder
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 Expression

The 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 retrieves the value of the left parameter, or the default value specified by the right parameter.

protected override Expression BuildSelector(Expression left, Expression right)

Parameters

left Expression

The left input parameter.

right Expression

The right input parameter.

Returns

Expression

The Expression that retrieves the value of the left parameter, or the default value specified by the right parameter.