Export (0) Print
Expand All

Observable.Generate(TState, TResult) Method (TState, Func(TState, Boolean), Func(TState, TState), Func(TState, TResult), Func(TState, DateTimeOffset))

Generates an observable sequence by iterating a state from an initial state until the condition fails.

Namespace:  System.Reactive.Linq
Assembly:  System.Reactive (in System.Reactive.dll)

JScript does not support generic types and methods.

Type Parameters

TState

The type of state.

TResult

The type of result.

Parameters

initialState
Type: TState
The initial state.
condition
Type: System.Func(TState, Boolean)
The condition to terminate generation.
iterate
Type: System.Func(TState, TState)
The iteration step function.
resultSelector
Type: System.Func(TState, TResult)
The selector function for results produced in the sequence.
timeSelector
Type: System.Func(TState, DateTimeOffset)
The time selector function to control the speed of values being produced each iteration.

Return Value

Type: System.IObservable(TResult)
The generated sequence.
Show:
© 2014 Microsoft