get bytes array from string c# code example
Example 1: string from byte array c#
var str = System.Text.Encoding.Default.GetString(result);
Example 2: c# get bytes from string
byte[] bytes = Encoding.ASCII.GetBytes(someString);
var str = System.Text.Encoding.Default.GetString(result);
byte[] bytes = Encoding.ASCII.GetBytes(someString);