MoreEnumerable.ToDictionary Method |
Name | Description | |
---|---|---|
![]() ![]() | ToDictionary<TKey, TValue>(IEnumerable<KeyValuePair<TKey, TValue>>) |
Creates a Dictionary< TKey, TValue> from a sequence of
KeyValuePair< TKey, TValue> elements.
|
![]() ![]() | ToDictionary<TKey, TValue>(IEnumerable<ValueTuple<TKey, TValue>>) |
Creates a Dictionary< TKey, TValue> from a sequence of
tuples of 2 where the first item is the key and the second the
value.
|
![]() ![]() | ToDictionary<TKey, TValue>(IEnumerable<KeyValuePair<TKey, TValue>>, IEqualityComparer<TKey>) |
Creates a Dictionary< TKey, TValue> from a sequence of
KeyValuePair< TKey, TValue> elements. An additional
parameter specifies a comparer for keys.
|
![]() ![]() | ToDictionary<TKey, TValue>(IEnumerable<ValueTuple<TKey, TValue>>, IEqualityComparer<TKey>) |
Creates a Dictionary< TKey, TValue> from a sequence of
tuples of 2 where the first item is the key and the second the
value. An additional parameter specifies a comparer for keys.
|