Sequence Select TSource, TResult  Method (ISequence TSource , Func TSource, Int32, TResult )A Sandcastle Documented Class Library
Projects each element of a sequence into a new sequence. Each element's index is used in the logic of the selector function.

Namespace: Sequences
Assembly: Sequences (in Sequences.dll) Version: 1.0.1.0 (1.0.1)
Syntax
public static ISequence<TResult> Select<TSource, TResult>(
	this ISequence<TSource> source,
	Func<TSource, int, TResult> selector
)

Parameters

source
Type: Sequences ISequence TSource 
A sequence of values to invoke a transform function on.
selector
Type: System Func TSource, Int32, TResult 
A transform function to apply to each element and its index.
Type Parameters
TSource
The type of the elements of source.
TResult
The type of the elements returned by selector.

Return Value

Type: ISequence TResult 
A sequence whose elements are the result of invoking the transform function on each element of source.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ISequence TSource . When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also