c# as byte to string code example
Example 1: convert system.byte a string c#
string result = System.Text.Encoding.UTF8.GetString(byteArray);
Example 2: c# byte array to string
var str = System.Text.Encoding.Default.GetString(result);
string result = System.Text.Encoding.UTF8.GetString(byteArray);
var str = System.Text.Encoding.Default.GetString(result);