c# concatenate array code example Example: append 2 arrays c# var z = new int[x.Length + y.Length]; x.CopyTo(z, 0); y.CopyTo(z, x.Length);