📜  组合 2 个数组 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:11.202000             🧑  作者: Mango

代码示例1
int[] front = { 1, 2, 3, 4 };
int[] back = { 5, 6, 7, 8 };

int[] combined = new int[front.Length + back.Length];
Array.Copy(front, combined, front.Length);
Array.Copy(back, 0, combined, front.Length, back.Length);