how to work with ascii in c#

C#
string value = "9quali52ty3";

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

Also in C#: