Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Extension method: IEnumerable<TResult> Select<T, TResult>(this IEnumerable<T>, Func<T, bool, bool, TResult>)

  • Declared in: RT.Modeling.Md

Declaration

public static IEnumerable<TResult> Select<T, TResult>(
    this IEnumerable<T> source,
    Func<T, bool, bool, TResult> selector
)

Summary

Projects each element of a sequence into a new form by incorporating the element's index.

Generic type parameters

T The type of the elements of source.
TResult The type of the value returned by selector.

Parameters

this IEnumerable<T>source A sequence of values to invoke a transform function on.
Func<T, bool, bool, TResult>selector A transform function to apply to each source element. The parameters of the function are: ① the element; ② a boolean indicating whether this is the first element; ③ a boolean indicating whether this is the last element.

Returns

A collection whose elements are the result of invoking the selector on each element of source.