Export (0) Print
Expand All
0 out of 4 rated this helpful - Rate this topic

Enumerable.ToLookup Method

Creates a generic Lookup<TKey, TElement> from an IEnumerable<T>.

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

  Name Description
Public method Static member ToLookup<TSource, TKey>(IEnumerable<TSource>, Func<TSource, TKey>) Creates a Lookup<TKey, TElement> from an IEnumerable<T> according to a specified key selector function.
Public method Static member ToLookup<TSource, TKey>(IEnumerable<TSource>, Func<TSource, TKey>, IEqualityComparer<TKey>) Creates a Lookup<TKey, TElement> from an IEnumerable<T> according to a specified key selector function and key comparer.
Public method Static member ToLookup<TSource, TKey, TElement>(IEnumerable<TSource>, Func<TSource, TKey>, Func<TSource, TElement>) Creates a Lookup<TKey, TElement> from an IEnumerable<T> according to specified key selector and element selector functions.
Public method Static member ToLookup<TSource, TKey, TElement>(IEnumerable<TSource>, Func<TSource, TKey>, Func<TSource, TElement>, IEqualityComparer<TKey>) Creates a Lookup<TKey, TElement> from an IEnumerable<T> according to a specified key selector function, a comparer and an element selector function.
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.