
1 string to byte []
string str = "abcd" ;
byte[] bytes = System.Text.Encoding.ASCII.GetBytes(str);
-------------------------------------------------------------------------------------------------------------
2 byte[] to string
byte[] bytes = new byte[255] ;
string str = System.Text.Encoding.ASCII.GetString(bytes,0,bytes.Length);
3. byte to string
byte a=4;
string str=a.toString();
标签: 1
分类: 1
本文章引用通告地址(TrackBack Ping URL)为: 

本文章尚未被引用。
下一篇: asp.net 弹出模式对话框步骤
