c# create struct from byte array code example
Example 1: string from byte array c#
var str = System.Text.Encoding.Default.GetString(result);
Example 2: c# store byte array as string
string utfString = Encoding.UTF8.GetString(bytes, 0, bytes.Length);