Distinct
Last updated
Was this helpful?
Last updated
Was this helpful?
Returns a collection that contains no duplicate entries according to comparer
and hashCodeGetter
functions.
If an element occurs multiple times in the collection then the later occurrences are discarded.
Internally this method uses a object.
Parameter
Returns
Func<T, T, bool> comparer
Func<T, int> hashCodeGetter
IEnumerable<T> source
int
Discarding duplicate entries