I'm converting a List<string> into a byte array like this:
Byte[] bArray = userList
.SelectMany(s => System.Text.Encoding.ASCII.GetByte(s))
.ToArray();
How can I convert it back to a List<string>? I tried using ASCII.GetString(s) in the code above, but GetString expected a byte[], not a single byte.
bArray.ToList()? Or does your original list have multiple strings in it?is there a better way to convert a list of strings to/from a byte array or streamYes this is calledserialization