Class EnumerableExtensions
Содержит набор расширений для IEnumerable<T>.
Inherited Members
Namespace: Ascon.Vertical
Assembly: Ascon.Vertical.dll
Syntax
public static class EnumerableExtensions
Methods
DistinctBy<TSource, TKey>(IEnumerable<TSource>, Func<TSource, TKey>, IEqualityComparer<TKey>)
Возвращает уникальные элементы перечисления.
Declaration
public static IEnumerable<TSource> DistinctBy<TSource, TKey>(this IEnumerable<TSource> source, Func<TSource, TKey> keySelector, IEqualityComparer<TKey> comparer)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<TSource> | source | Исходный перечень. |
| Func<TSource, TKey> | keySelector | Функция получения ключа элемента. |
| IEqualityComparer<TKey> | comparer | Сравниватель ключей. |
Returns
| Type | Description |
|---|---|
| IEnumerable<TSource> | Перечень уникальных элементов. |
Type Parameters
| Name | Description |
|---|---|
| TSource | Тип элементов в перечислении. |
| TKey | Тип ключа. |