从MSDN
string value = "9quali52ty3";// Convert the string into a byte[].byte[] asciiBytes = Encoding.ASCII.GetBytes(value);
现在,您有了字节的ASCII值的数组。我得到以下内容:
57113117 97 108 105 53 50 116 121 51

从MSDN
string value = "9quali52ty3";// Convert the string into a byte[].byte[] asciiBytes = Encoding.ASCII.GetBytes(value);
现在,您有了字节的ASCII值的数组。我得到以下内容:
57113117 97 108 105 53 50 116 121 51