随笔 - 19  文章 - 0 评论 - 100 trackbacks - 1
10 2008 档案
byte[]和16进制字符串的互相转换
摘要: hex string to byte[]public static byte[] StringToByte1(string value) { int len = value.Length / 2; byte[] ret = new byte[len]; for (int i = 0; i < len; i++) ret[i] = (byte)Convert.ToInt32(value.Sub...阅读全文
posted @ 2008-10-24 09:49 绿蚂蚁 阅读(1003) | 评论 (3) 编辑