Check out example codes for "c# string code ascii". It will help you in understanding the concepts better.

Code Example 1

string value = "9quali52ty3";

// Convert the string into a byte[].
byte[] asciiBytes = Encoding.ASCII.GetBytes(value);

Learn ReactJs, React Native from akashmittal.com