CountByExtension Class

CountBy extension.

Definition

Namespace: MoreLinq.Extensions
Assembly: MoreLinq (in MoreLinq.dll) Version: 4.0.0+092a40d82a1b280568ffa006d9a210bdec0792cd
C#
public static class CountByExtension
Inheritance
Object    CountByExtension

Methods

CountByTSource, TKey(IEnumerableTSource, FuncTSource, TKey) Applies a key-generating function to each element of a sequence and returns a sequence of unique keys and their number of occurrences in the original sequence.
CountByTSource, TKey(IEnumerableTSource, FuncTSource, TKey, IEqualityComparerTKey) Applies a key-generating function to each element of a sequence and returns a sequence of unique keys and their number of occurrences in the original sequence. An additional argument specifies a comparer to use for testing equivalence of keys.

See Also