Table of Contents

Class SubjectBuilder<T>

Namespace
Bonsai.Expressions
Assembly
Bonsai.Core.dll

Provides a base class for expression builders that declare a shared subject of the specified type. This is an abstract class.

[WorkflowElementCategory(ElementCategory.Source)]
public abstract class SubjectBuilder<T> : SubjectExpressionBuilder, IExpressionBuilder, INamedElement

Type Parameters

T

The type of the elements processed by the subject.

Inheritance
SubjectBuilder<T>
Implements
Derived
Inherited Members
Extension Methods

Constructors

SubjectBuilder()

Initializes a new instance of the SubjectBuilder<T> class.

protected SubjectBuilder()

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.

CreateSubject()

When overridden in a derived class, creates the shared subject.

protected abstract ISubject<T> CreateSubject()

Returns

ISubject<T>

A new instance of ISubject<T>.