Enumerable.select Method

Projects each element of a sequence into a new form. The element's index is provided for the transformation.
 
 
Static This method is static.

Parameters

source

Type: IEnumerable
A sequence of values to invoke a transform function on.
selector

Type: Function
A transform function to apply to each source element; the second parameter of the function represents the index of the source element.

Return Value


Type: IEnumerable
An enumerable whose elements are the result of invoking the transform function on each element of source.