score:8

Accepted answer

You can do it with Enumerable.Zip method like this:

var joined = array1.Zip(array2, (first, second) => first + " " + second);

score:8

You can do it with LINQ using Zip:

var res = array1.Zip(array2, (a, b) => $"{a} {b}").ToArray();

Note: If you do not have the latest compiler, use a+" "+b instead of $"{a} {b}".


Related Articles