Поделиться через


Enumerable.ToDictionary Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Include Protected Members
Include Inherited Members

Include Silverlight Members
Include Silverlight for Windows Phone Members
Include XNA Framework Members

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToDictionary<TSource, TKey>(IEnumerable<TSource>, Func<TSource, TKey>) Creates a Dictionary<TKey, TValue> from an IEnumerable<T> according to a specified key selector function.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 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.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 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.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 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.

Top