I need very fast conversion from byte array to string. Byte array is Unicode string.
From byte[] array to string
byte[]
string
var mystring = Encoding.Unicode.GetString(myarray);
From string to byte[]
var myarray2 = Encoding.Unicode.GetBytes(mystring);
1.4m articles
1.4m replys
5 comments
57.0k users