¿Cómo concatenar dos matrices en C #?
int[] x = new int [] { 1, 2, 3};
int[] y = new int [] { 4, 5 };
int[] z = // your answer here...
Debug.Assert(z.SequenceEqual(new int[] { 1, 2, 3, 4, 5 }));
-
Ahora mismo uso
int[] z = x.Concat(y).ToArray();
¿Existe un método más fácil o más eficiente?