Answers for "c sharp concatenate lists"

7

combine two lists c#

List<string> a = new List<string>();
List<string> b = new List<string>();

a.AddRange(b);
Posted by: Guest on September-18-2020
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

Code answers related to "TypeScript"

Browse Popular Code Answers by Language