using System.Collections.Generic;
public static IEnumerable<T> Merge<T>(T[] first, T[] second)
T[] merged = new T[(first.Length + second.Length)];
for (int i = 0; i < merged.Length; i++)
yield return (i < first.Length ?
first[i] : second[i - first.Length]);
public static void Main()
int[] z = Merge(x, y).ToArray();
Array.ForEach<int>(z, (int e) =>