原文来自:http://www.newxing.com/Tech/DotNet/CSharp/119.html
1 //String To Byte[]: 2 byte[] byteArray = System.Text.Encoding.Default.GetBytes(str); 3 4 //Byte[] To String: 5 string str = System.Text.Encoding.Default.GetString(byteArray);
更多内容请点击原文
原文来自:http://www.newxing.com/Tech/DotNet/CSharp/119.html
1 //String To Byte[]: 2 byte[] byteArray = System.Text.Encoding.Default.GetBytes(str); 3 4 //Byte[] To String: 5 string str = System.Text.Encoding.Default.GetString(byteArray);
更多内容请点击原文
转载于:https://www.cnblogs.com/zqt14520/p/5585436.html