Answers for "c# list string return concatenate"

C#
1

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));
Posted by: Guest on May-19-2020

C# Answers by Framework

Browse Popular Code Answers by Language