111,131
社区成员
发帖
与我相关
我的任务
分享Byte[] str = new Byte[2];
byte[] array =System.Text.Encoding.Default.GetBytes("$AA");
str[0] = array[0];
byte[] b = new byte[2];
b[0] = Convert.ToByte("$AA".Substring(1), 16);
Console.WriteLine(b[0]);
/*
输出170
*/