IndexOf<>(source, predicate, startIndex) IndexOf<>(source, element, comparer) JoinString<>(values, separator, prefix, suffix, lastSeparator) Order<>(source, comparer) SkipLast<>(source, count, throwIfNotEnough) Split<>(splitWhat, splitWhere) Split<>(source, chunkSize) ToDictionary2<>(source, key1Selector, key2Selector, comparer1, comparer2) ToDictionary2<>(source, key1Selector, key2Selector, elementSelector, comparer1, comparer2)
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>)Declarationpublic 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 parametersTSource |
Type of the elements in the source collection. | TResult |
Type of the results of the selector functions. |
Parametersthis 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. |