111,125
社区成员
发帖
与我相关
我的任务
分享
byte[] bytes = {0, 1, 2, 4, 8, 16, 32, 64, 128, 255 };
Console.WriteLine( BitConverter.ToString( bytes ) );
byte[] received = {12,34,45,78,90, 0xFF, 0x0, 0xcc};
string hexString = BitConverter.ToString(received); //<---
textBox1.Text = hexString;
MessageBox.Show( hexString );