Class Range
Represents an operator that generates an observable sequence of integer numbers within a specified range.
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
Start
Gets or sets the value of the first integer in the sequence.
public int Start { get; set; }
Property Value
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
sourceIObservable<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
sourceemits a notification.
Type Parameters
TSourceThe type of the elements in the
sourcesequence.