Функция соединяет две последовательности в одну.
using System;
//добавить ссылку
using System.Linq;
class Program {
public static int Main() {
int[] ara1 = new int[] { 1, 2, 3, 4, 5 };
int[] ara2 = new int[] { 10, 20, 30, 40, 50 };
var val = ara1.Concat(ara2);
foreach(var i in val) {
Console.Write("{0} ", i);
}
Console.WriteLine();
Console.ReadKey();
return 0;
}
}
1 2 3 4 5 10 20 30 40 50