IndexOf<>(source, predicate, startIndex) IndexOf<>(source, element, comparer) JoinString<>(values, separator, prefix, suffix, lastSeparator) Order<>(source, comparer) SkipLast<>(source, count, throwIfNotEnough) Split<>(splitWhat, splitWhere) Split<>(source, chunkSize) ToDictionary2<>(source, key1Selector, key2Selector, comparer1, comparer2) ToDictionary2<>(source, key1Selector, key2Selector, elementSelector, comparer1, comparer2)
Legend Class Struct Enum Interface Delegate | Constructor Method Property Event Field |
| Extension method: T MaxCountElement<T>(this IEnumerable<T>, IEqualityComparer<T>)Declarationpublic static T MaxCountElement<T>(
this IEnumerable<T> source,
IEqualityComparer<T> comparer = null
) Summary
Determines which element occurs the most often in the specified input sequence. Generic type parametersT |
Type of elements in the input sequence. |
Parametersthis IEnumerable<T> | source |
Sequence to find most common element in. | IEqualityComparer<T> | comparer |
Optional equality comparer to compare elements by. |
Returns
Of all elements that occur the most number of times, the one whose last instance occurs soonest in the
sequence. |