<分区> 分区>
Possible Duplicate:
How do you convert Byte Array to Hexadecimal String, and vice versa?
我有一个列表,我需要将它转换为十六进制字符串。我觉得我转换的方式很安静。
List<byte> TRIGGER_POL = Data.GetRange(23, 1);
byte[] TRIGGER_POL_temp = new byte[TRIGGER_POL.Count];
TRIGGER_POL_temp[0] = TRIGGER_POL[0];
string TRIGGER_POL_hx = BitConverter.ToString(TRIGGER_POL_temp, 0).Replace("-", string.Empty);
有没有更快、更有效的方法来做到这一点?
谢谢..
