Enumerable.CountBy<TSource,TKey> Метод

Определение

C#
public static System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TKey,int>> CountBy<TSource,TKey> (this System.Collections.Generic.IEnumerable<TSource> source, Func<TSource,TKey> keySelector, System.Collections.Generic.IEqualityComparer<TKey>? keyComparer = default);

Параметры типа

TSource
TKey

Параметры

source
IEnumerable<TSource>
keySelector
Func<TSource,TKey>
keyComparer
IEqualityComparer<TKey>

Возвращаемое значение

Применяется к

Продукт Версии
.NET 9