Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Extension method: IEnumerable<TResult> SelectTwo<TSource, TResult>(this IEnumerable<TSource>, Func<TSource, TResult>, Func<TSource, TResult>)

Declaration

public static IEnumerable<TResult> SelectTwo<TSource, TResult>(
    this IEnumerable<TSource> source,
    Func<TSource, TResult> selector1,
    Func<TSource, TResult> selector2
)

Summary

Transforms every element of an input collection using two selector functions and returns a collection containing all the results.

Generic type parameters

TSource Type of the elements in the source collection.
TResult Type of the results of the selector functions.

Parameters

this IEnumerable<TSource>source Input collection to transform.
Func<TSource, TResult>selector1 First selector function.
Func<TSource, TResult>selector2 Second selector function.

Returns

A collection containing the transformed elements from both selectors, thus containing twice as many elements as the original collection.