C# 클래스 MyEnumerable, code

파일 보기 프로젝트 열기: shendongnian/code 1 사용 예제들

공개 메소드들

메소드 설명
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