Table of Contents

Class PropertySource

Namespace
Bonsai.Expressions
Assembly
Bonsai.Core.dll

Represents a data source compatible with the specified workflow element property.

Property sources expose a value which can be set from the property grid and also generate an observable sequence that emits a notification whenever the property value changes, starting with the initial property value.

Tip

Property sources are commonly used to create new configuration parameters with custom names for nested workflows. To expose and rename a property source, use Property Mapping to externalize the property value and set its DisplayName.

[WorkflowElementCategory(ElementCategory.Source)]
public abstract class PropertySource : ExpressionBuilder, IExpressionBuilder, INamedElement
Inheritance
PropertySource
Implements
Derived
Inherited Members
Extension Methods

Properties

ArgumentRange

Gets the range of input arguments that this expression builder accepts.

public override Range<int> ArgumentRange { get; }

Property Value

Range<int>

MemberName

Gets or sets the name of the externalized class member.

[Browsable(false)]
public string MemberName { get; set; }

Property Value

string

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.