Observable.Take<TSource> Method
Returns a specified number of contiguous values from the start of an observable sequence.
Namespace: System.Reactive.Linq
Assembly: System.Reactive (in System.Reactive.dll)
public static IObservable<TSource> Take<TSource>( this IObservable<TSource> source, int count )
Type Parameters
- TSource
The type of source.
Parameters
- source
- Type: System.IObservable<TSource>
The sequence to take elements from.
- count
- Type: System.Int32
The number of elements to return.
Return Value
Type: System.IObservable<TSource>An observable sequence that contains the specified number of elements from the start of the input sequence.