int[] i = { 0, 1, 2, 3, 4, 5, 6 }; var sum = i.Sum();
int s = 0; foreach (var item in i) { s += item; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)