首页 > 编程语言 >C# 数组拼接

C# 数组拼接

时间:2022-11-10 11:44:24浏览次数:71  
标签:ab C# 99 拼接 数组 byte Concat

byte[] a = { 1, 2, 3 };
byte[] b = { 99, 3, 2, 1, 99 };
byte[] c = { 0, 0 };
byte[] ab = a.Concat(b).Concat(c).ToArray();

foreach (byte v in ab)
{
    Console.WriteLine(v);
}

输出:

1
2
3
99
3
2
1
99
0
0




参考:

https://blog.csdn.net/weixin_29868343/article/details/112814209

标签:ab,C#,99,拼接,数组,byte,Concat
From: https://www.cnblogs.com/huvjie/p/16876559.html

相关文章