2

Closed

Add extension method HasDuplicates to IEnumerable

description

Add extension method HasDuplicates to IEnumerable, like the following:

bool HasDuplicates(this IEnumerable<T> e IEqualityComparer<T> comparer = null)

Create a version which returns the duplicated keys:

IEnumerable<T> GetDuplicates(this IEnumerable<T> e, Func<T, TKey> keySelector, IEqualityComparer<TKey> comparer = null)
Closed Mar 27, 2012 at 1:49 PM by isierrajg
Added HasDuplicates and GetDuplicates

comments