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);
2.1m questions
2.1m answers
60 comments
57.0k users