AGGREGATE (1) 썸네일형 리스트형 LINQ Aggregate namespace : System.Linq definition : public static TSource Aggregate(this IEnumerable source, Func func) description : 시퀸스에 누적기 함수를 적용한다. usage summary : 비슷한 느낌의 연산자로 "+=" 이 있다 Ienumerable.Aggregate((result, item) => result + ", " + item); example : string sample = "나는 이 문장의 단어 배열을 뒤집을 것이다"; var words = stringSample.Split(' '); var reversedSample = words.Aggregate((result, word) => word + " " + .. 이전 1 다음