Table of Contents

Method Convert

Namespace
Bonsai.Expressions
Assembly
Bonsai.Core.dll

Convert(IEnumerable<Node<ExpressionBuilder, ExpressionBuilderArgument>>, Func<ExpressionBuilder, ExpressionBuilder>)

Converts the specified expression builder workflow into an equivalent representation where each node has been replaced by its projection as specified by a selector function.

public static ExpressionBuilderGraph Convert(this IEnumerable<Node<ExpressionBuilder, ExpressionBuilderArgument>> source, Func<ExpressionBuilder, ExpressionBuilder> selector)

Parameters

source IEnumerable<Node<ExpressionBuilder, ExpressionBuilderArgument>>

The expression builder workflow to convert.

selector Func<ExpressionBuilder, ExpressionBuilder>

A transform function to apply to each node.

Returns

ExpressionBuilderGraph

A new expression builder workflow where all nodes have been replaced by their projections as specified by the selector function.

Convert(IEnumerable<Node<ExpressionBuilder, ExpressionBuilderArgument>>, Func<ExpressionBuilder, ExpressionBuilder>, bool)

Converts the specified expression builder workflow into an equivalent representation where each node has been replaced by its projection as specified by a selector function.

public static ExpressionBuilderGraph Convert(this IEnumerable<Node<ExpressionBuilder, ExpressionBuilderArgument>> source, Func<ExpressionBuilder, ExpressionBuilder> selector, bool recurse)

Parameters

source IEnumerable<Node<ExpressionBuilder, ExpressionBuilderArgument>>

The expression builder workflow to convert.

selector Func<ExpressionBuilder, ExpressionBuilder>

A transform function to apply to each node.

recurse bool

A value indicating whether to recurse the conversion into nested workflows.

Returns

ExpressionBuilderGraph

A new expression builder workflow where all nodes have been replaced by their projections as specified by the selector function.