Table of Contents

Class SkipWhile

Namespace
Bonsai.Reactive
Assembly
Bonsai.Core.dll

Represents an expression builder which bypasses elements in an observable sequence as long as the condition specified by the encapsulated workflow is true.

Marble diagram

The nested workflow specifying the condition must return a sequence of type bool. This nested sequence may be synchronous or asynchronous with respect to notifications from the source sequence.

After each element is emitted by the source sequence, the latest value from the nested sequence is checked. While the value is true, elements will continue to be dropped from the result sequence. When the value changes to false, SkipWhile will start emitting all elements from the source sequence.

If the source sequence terminates before the nested workflow returns false, SkipWhile will terminate without emitting any values.

[WorkflowElementCategory(ElementCategory.Combinator)]
public class SkipWhile : Condition, IWorkflowExpressionBuilder, INamedElement, IPropertyMappingBuilder, IExpressionBuilder
Inheritance
SkipWhile
Implements
Inherited Members
Extension Methods

Constructors

SkipWhile()

Initializes a new instance of the SkipWhile class.

public SkipWhile()

SkipWhile(ExpressionBuilderGraph)

Initializes a new instance of the SkipWhile class with the specified expression builder workflow.

public SkipWhile(ExpressionBuilderGraph workflow)

Parameters

workflow ExpressionBuilderGraph

The expression builder workflow instance that will be used by this builder to generate the output expression tree.