Method DistinctBy
DistinctBy<TSource, TKey>(IEnumerable<TSource>, Func<TSource, TKey>)
Declaration
public static IEnumerable<TSource> DistinctBy<TSource, TKey>(this IEnumerable<TSource> source, Func<TSource, TKey> keySelector)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<TSource> | source | |
Func<TSource, TKey> | keySelector |
Returns
Type | Description |
---|---|
IEnumerable<TSource> |
Type Parameters
Name | Description |
---|---|
TSource | |
TKey |