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