I have a List of bytes that I want to convert to a string. Currently I am doing this:
Is there a better alternative I can use that will convert all the bytes in one go without the foreach loop?Code:// myList is a generic List<byte> string myString = ""; foreach (byte byt in myList) { myString += (char)byt; } ConsoleWriteLine(myString);
At the moment the list will hold a max. of around 25 bytes.





Reply With Quote