Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Extension method: IEnumerable<TResult> Select<TElem1, TElem2, TResult>(this IEnumerable<ValueTuple<TElem1, TElem2>>, Func<TElem1, TElem2, int, TResult>)

Declaration

public static IEnumerable<TResult> Select<TElem1, TElem2, TResult>(
    this IEnumerable<ValueTuple<TElem1, TElem2>> source,
    Func<TElem1, TElem2, int, TResult> selector
)

Summary

Projects each element of a sequence of 2-tuples into a new form by incorporating the element’s index.

Generic type parameters

TElem1 The type of the first element in each tuple in source.
TElem2 The type of the second element in each tuple in source.
TResult The type of the value returned by selector.

Parameters

this IEnumerable<ValueTuple<TElem1, TElem2>>source A sequence of 2-tuples to invoke a transform function on.
Func<TElem1, TElem2, int, TResult>selector A transform function to apply to each 2-tuple; the third parameter of the function represents the index of the source element.

Returns

A collection whose elements are the results of invoking selector on each 2-tuple in source.