[]
Projects each element of a collection into a new form.
public static IIndexedSource<TResult> Select<TSource, TResult>(this IIndexedSource<TSource> source, Expression<Func<TSource, TResult>> selector)
Type | Name | Description |
---|---|---|
IIndexedSource<TSource> | source | An IIndexedSource<TSource> collection of values to invoke a transform function on. |
Expression<Func<TSource, TResult>> | selector | A transform function to apply to each element. |
Type | Description |
---|---|
IIndexedSource<TResult> | An IIndexedSource<TResult> whose elements are the result of invoking the transform function on each element of source. |
Name | Description |
---|---|
TSource | The type of the elements of source. |
TResult | The type of the value returned by selector. |