110,534
社区成员
发帖
与我相关
我的任务
分享
string str = "12 34 3B 5C";
string[] temp = str.Split(' ');
byte[] bytes = new byte[temp.Length];
for (int i = 0; i < temp.Length; i++)
{
bytes[i] = Convert.ToByte(temp[i], 16);
}