Class ElementIndex
Represents an operator that incorporates the zero-based index of elements in an observable sequence.
ElementIndex
can be used to incrementally keep a tally of the number of elements in a sequence. It is also often used as the first step in custom index-dependent computations.
[Combinator]
public class ElementIndex
- Inheritance
-
ElementIndex
- Inherited Members
Methods
Process<TSource>(IObservable<TSource>)
Incorporates the zero-based index of elements in an observable sequence.
public IObservable<ElementIndex<TSource>> Process<TSource>(IObservable<TSource> source)
Parameters
source
IObservable<TSource>The source sequence for which to incorporate element indices.
Returns
- IObservable<ElementIndex<TSource>>
An observable sequence with index information on elements.
Type Parameters
TSource
The type of the elements in the
source
sequence.