I have a byte[] array that is loaded from a file that I happen to known contains UTF-8.
byte[]
In some debugging code, I need to convert it to a string. Is
BitConverter class can be used to convert a byte[] to string.
BitConverter
string
var convertedString = BitConverter.ToString(byteAttay);
Documentation of BitConverter class can be fount on MSDN