Table of Contents

Class ExpressionSink

Namespace
Bonsai.Scripting.Expressions
Assembly
Bonsai.Scripting.Expressions.dll

Represents an operator that uses an expression script to invoke an action for each element of an observable sequence.

[WorkflowElementCategory(ElementCategory.Sink)]
public class ExpressionSink : SingleArgumentExpressionBuilder, IExpressionBuilder, INamedElement
Inheritance
ExpressionSink
Implements
Inherited Members
Extension Methods

Properties

Description

Gets or sets a description for the expression sink.

[Externalizable(false)]
public string Description { get; set; }

Property Value

string

Expression

Gets or sets the expression that determines the action to perform on the input elements.

public string Expression { get; set; }

Property Value

string

Name

Gets or sets the name of the expression sink.

[Externalizable(false)]
public string Name { get; set; }

Property Value

string

Methods

Build(IEnumerable<Expression>)

Constructs 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 representing the input arguments.

Returns

Expression

The constructed Expression node.