Click or drag to resize

MoreEnumerable.GroupAdjacent Method

Overload List
  NameDescription
Public methodStatic memberGroupAdjacent<TSource, TKey>(IEnumerable<TSource>, Func<TSource, TKey>)
Groups the adjacent elements of a sequence according to a specified key selector function.
Public methodStatic memberGroupAdjacent<TSource, TKey>(IEnumerable<TSource>, Func<TSource, TKey>, IEqualityComparer<TKey>)
Groups the adjacent elements of a sequence according to a specified key selector function and compares the keys by using a specified comparer.
Public methodStatic memberGroupAdjacent<TSource, TKey, TElement>(IEnumerable<TSource>, Func<TSource, TKey>, Func<TSource, TElement>)
Groups the adjacent elements of a sequence according to a specified key selector function and projects the elements for each group by using a specified function.
Public methodStatic memberGroupAdjacent<TSource, TKey, TResult>(IEnumerable<TSource>, Func<TSource, TKey>, Func<TKey, IEnumerable<TSource>, TResult>)
Groups the adjacent elements of a sequence according to a specified key selector function. The keys are compared by using a comparer and each group's elements are projected by using a specified function.
Public methodStatic memberGroupAdjacent<TSource, TKey, TElement>(IEnumerable<TSource>, Func<TSource, TKey>, Func<TSource, TElement>, IEqualityComparer<TKey>)
Groups the adjacent elements of a sequence according to a specified key selector function. The keys are compared by using a comparer and each group's elements are projected by using a specified function.
Public methodStatic memberGroupAdjacent<TSource, TKey, TResult>(IEnumerable<TSource>, Func<TSource, TKey>, Func<TKey, IEnumerable<TSource>, TResult>, IEqualityComparer<TKey>)
Groups the adjacent elements of a sequence according to a specified key selector function. The keys are compared by using a comparer and each group's elements are projected by using a specified function.
Top
See Also