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