Method ToDictionary
ToDictionary<T, TKey, TValue>(IEnumerable<T>, Func<T, TKey>, Func<T, TValue>, Func<(TKey key, TValue existingValue, TValue newValue), TValue>)
Declaration
public static IDictionary<TKey, TValue> ToDictionary<T, TKey, TValue>(this IEnumerable<T> enumerable, Func<T, TKey> keyExtractor, Func<T, TValue> valueExtractor, Func<(TKey key, TValue existingValue, TValue newValue), TValue> conflictSolver)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<T> | enumerable | |
Func<T, TKey> | keyExtractor | |
Func<T, TValue> | valueExtractor | |
Func<(TKey key, TValue existingValue, TValue newValue), TValue> | conflictSolver |
Returns
Type | Description |
---|---|
IDictionary<TKey, TValue> |
Type Parameters
Name | Description |
---|---|
T | |
TKey | |
TValue |