C# Класс MyEnumerable, code

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
GroupAdjacentBy ( IEnumerable, source, Func, keySelector ) : TSource>>.IEnumerable

Cuts a sequence into groups according to a specified key selector function. Similar to GroupBy, but only groups adjacent items. Reduces a collection a,a,B,B,B,a,p,p,p,p to (a,a),(B,B,B),(a),(p,p,p,p).

Описание методов

GroupAdjacentBy() публичный статический Метод

Cuts a sequence into groups according to a specified key selector function. Similar to GroupBy, but only groups adjacent items. Reduces a collection a,a,B,B,B,a,p,p,p,p to (a,a),(B,B,B),(a),(p,p,p,p).
public static GroupAdjacentBy ( IEnumerable, source, Func, keySelector ) : TSource>>.IEnumerable
source IEnumerable, An whose elements to group.
keySelector Func, A function to extract the key for each element.
Результат TSource>>.IEnumerable