日期:2014-05-17 浏览次数:21016 次
string s = "3E-2E-3D-43-16-0E";
var d = s.Split('-');
byte[] by = new byte[d.Length];
for (int i = 0; i < d.Length; i++)
{
by[i] = ??;
}
byte[] result = new byte[6];
result[0] = 0x3e;
result[1] = 0x2e;
result[2] = 0x3d;
result[3] = 0x43;
result[4] = 0x16;
result[5] = 0x0e;