Mid LINQ

How to concatenate two sequences?

How to concatenate two sequences?

var list3 = new[] { "Frank", "Grace" };

var concatenated = list1.Concat(list3);

foreach(var name in concatenated)

Console.WriteLine(name);

More from LINQ Tutorial

All questions for this course