concat list c# code example
Example 1: combine two lists c#
List<string> a = new List<string>();
List<string> b = new List<string>();
a.AddRange(b);
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));