Table of Contents

Class Range

Namespace
Bonsai.Reactive
Assembly
Bonsai.Core.dll

Represents an operator that generates an observable sequence of integer numbers within a specified range.

Marble diagram

The entire sequence of numbers in the range is emitted immediately upon subscription. If another sequence is provided as an input to Range, the entire sequence of numbers will be emitted once for each notification in the source sequence.

public class Range : Source<int>
Inheritance
Range
Inherited Members

Properties

Count

Gets or sets the number of sequential integers to generate.

public int Count { get; set; }

Property Value

int

Start

Gets or sets the value of the first integer in the sequence.

public int Start { get; set; }

Property Value

int

Methods

Generate()

Generates an observable sequence of integer numbers within a specified range.

public override IObservable<int> Generate()

Returns

IObservable<int>

An observable sequence that contains a range of sequential integer numbers.

Generate<TSource>(IObservable<TSource>)

Generates an observable sequence of integer numbers within a specified range whenever the source sequence emits a notification.

public IObservable<int> Generate<TSource>(IObservable<TSource> source)

Parameters

source IObservable<TSource>

The source sequence used to generate the range.

Returns

IObservable<int>

An observable sequence that generates a range of sequential integer numbers whenever the source emits a notification.

Type Parameters

TSource

The type of the elements in the source sequence.