摘要:
在写加解密和网络传输的时候,通常需要将参数转换成byte数组的形式,但是.Net在互相转换的时候却没有将转换的方式做在一起。 string-->byte[] byte[] bytes = new UnicodeEncoding().GetBytes(str); byte[]-->string str = new UnicodeEncoding().GetString(bytes); 这样就能转... 阅读全文
posted @ 2007-11-19 11:36
老鱼头
阅读(198)
评论(0)
推荐(0)
浙公网安备 33010602011771号