krisgithub1234 / linqbridge

Automatically exported from code.google.com/p/linqbridge
Other
0 stars 0 forks source link

Enumerable.ToLookup has incorrect return type #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
All overloads of Enumerable.ToLookup have the incorrect return type of 
Lookup<TKey, TSource> instead of the interface type ILookup<TKey, 
TSource>. For example, intead of:

public static Lookup<TKey, TSource> ToLookup<TSource, TKey>(
    this IEnumerable<TSource> source,
    Func<TSource, TKey> keySelector)

It should be:

public static ILookup<TKey, TSource> ToLookup<TSource, TKey>(
    this IEnumerable<TSource> source,
    Func<TSource, TKey> keySelector)

Original issue reported on code.google.com by azizatif on 3 Oct 2009 at 2:13

GoogleCodeExporter commented 9 years ago
Fixed in r223.

Original comment by azizatif on 4 Oct 2009 at 6:40