c# list join with separator code example
Example 1: c# list to string join
String.Join(" ", elements)
Example 2: c# list string return concatenate
string delimiter = ",";
List<string> items = new List<string>() { "foo", "boo", "john", "doe" };
Console.WriteLine(items.Aggregate((i, j) => i + delimiter + j));