「C#入門」LINQのAverage、Max、Min、Sumメソッドの書き方

サンプルコード
double average = new List<int> {12, 13, 14, 15 }.Average ();

int max = new List<int?> { 5, 2, null,15, 16}.Max ();

long min = new long[] {6, 7, 8}.Min ();

float sum = new float[] {2.1F ,3.0F, 5.0F}.Sum ();

C#

Posted by arkgame