Show / Hide Table of Contents

Class EnumerableExtensions

Содержит набор расширений для IEnumerable<T>.

Inheritance
object
EnumerableExtensions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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

Тип ключа.

Back to top Copyright © 2014 - 2026 ООО «АСКОН-Бизнес-решения»