Lets say I have an array (or list) of items
A[] = [a,b,c,d,e]
If I want to print them out so each item is separated by a comma (or any othe
using System; using System.Linq; public class Program { public static void Main() { string[] values = new string[]{"banana", "papaya", "melon"}; var result = values.Aggregate((x,y) => x + ", " + y); Console.WriteLine(result); } }