reduce function for lists in c# code example Example: c# array.reduce var sum = number.Aggregate((x, y) => x + y);