array reduce c#

66

c# array.reduce -

var sum = number.Aggregate((x, y) => x + y);

array reduce c# -

Enumerable.Range(1, 10).Select(x => x + 2);

Comments

Submit
0 Comments