Enumerable.ToDictionary Method
.NET Framework (current version)
Creates a Dictionary<TKey, TValue> from an IEnumerable<T>.
Assembly: System.Core (in System.Core.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | ToDictionary<TSource, TKey>(IEnumerable<TSource>, Func<TSource, TKey>) | Creates a Dictionary<TKey, TValue> from an IEnumerable<T> according to a specified key selector function. |
![]() ![]() | ToDictionary<TSource, TKey>(IEnumerable<TSource>, Func<TSource, TKey>, IEqualityComparer<TKey>) | Creates a Dictionary<TKey, TValue> from an IEnumerable<T> according to a specified key selector function and key comparer. |
![]() ![]() | ToDictionary<TSource, TKey, TElement>(IEnumerable<TSource>, Func<TSource, TKey>, Func<TSource, TElement>) | Creates a Dictionary<TKey, TValue> from an IEnumerable<T> according to specified key selector and element selector functions. |
![]() ![]() | ToDictionary<TSource, TKey, TElement>(IEnumerable<TSource>, Func<TSource, TKey>, Func<TSource, TElement>, IEqualityComparer<TKey>) | Creates a Dictionary<TKey, TValue> from an IEnumerable<T> according to a specified key selector function, a comparer, and an element selector function. |
Show:

