Enumerable +4
AggregateBy<TSource, TKey, TAccumulate>(IEnumerable<TSource>, Func<TSource, TKey>, TAccumulate, Func<TAccumulate, TSource, TAccumulate>, IEqualityComparer<TKey>)
AggregateBy<TSource, TKey, TAccumulate>(IEnumerable<TSource>, Func<TSource, TKey>, Func<TKey, TAccumulate>, Func<TAccumulate, TSource, TAccumulate>, IEqualityComparer<TKey>)
CountBy<TSource, TKey>(IEnumerable<TSource>, Func<TSource, TKey>, IEqualityComparer<TKey>)
Index<TSource>(IEnumerable<TSource>)
net9.0
namespace System.Linq
{
public static class Enumerable
{
public static IEnumerable<KeyValuePair<TKey, int>>! CountBy<TSource, TKey>(this IEnumerable<TSource>! source, Func<TSource, TKey>! keySelector, IEqualityComparer<TKey>? keyComparer = null)
where TKey, notnull;
}
}
.NET | 9.0 |
---|---|
Information specific to net9.0 | |
Assembly | System.Linq , Version=9.0.0.0, PublicKeyToken=b03f5f7f11d50a3a |
Referencing | The API is automatically referenced. |
Platform Restrictions | This API is supported on all platforms. |
- Built-in API
- Package-provided API