Observable.Select<TSource, TResult> Method (IObservable<TSource>, Func<TSource, Int32, TResult>)
Projects each element of an observable sequence into a new form by incorporating the element’s index with the specified source and selector.
Namespace: System.Reactive.Linq
Assembly: System.Reactive (in System.Reactive.dll)
public static IObservable<TResult> Select<TSource, TResult>( this IObservable<TSource> source, Func<TSource, int, TResult> selector )
Type Parameters
- TSource
The type of source.
- TResult
The type of result.
Parameters
- source
- Type: System.IObservable<TSource>
A sequence of elements to invoke a transform function on.
- selector
- Type: System.Func<TSource, Int32, TResult>
A transform function to apply to each source element.