数组1:arr
数组2:arr2
合并后的数组是:arr3
代码如下:
string[] arr = { “aspbc.com”, “sina”, “baidu”, “google”, “163” };
string[] arr2 = { “1”, “2”, “3” };
string[] arr3 = arr.Concat(arr2).ToArray();
for (int i = 0; i < arr3.Length; i++)
{
MessageBox.Show(arr3[i]);
}