Aggregateの読み方

Aggregateの読み方

C#で利用できる関数の1つである「Aggregate」の読み方を掲載してます。

読み⽅

アグリゲイト」と読みます。

英訳

「集計」という意味があります。

Aggregateとは

配列の集計を行うことが可能です。

int[] arr = new int[] { 1, 2, 3, 4, 5};  

// 合計を集計
int reault1 = arr1.Aggregate((sum, number) => sum += number);