I've seen the simple example of the .net Aggregate function working like so:
string[] words = { "one", "two", "three" };
var res = words.Aggregate((current, next) => current + ", " + next);
Console.WriteLine(res);
How could the 'Aggregate' function be used if you wish to aggregate more complex types? For example: a class with 2 properties such as 'key' and 'value' and you want the output like this:
"MyAge: 33, MyHeight: 1.75, MyWeight:90"