string c =“B”;
//string 转换为二进制 转换为ascii
System.Text.ASCIIEncoding asciiEncoding = new System.Text.ASCIIEncoding();
int intAsciiCode = (int)asciiEncoding.GetBytes(c)[0];
//ASCII码强制转换二进制 转换为string
byte[] array = new byte[1];
array[0] = (byte)(Convert.ToInt32(intAsciiCode + 1));
c = Convert.ToString(System.Text.Encoding.ASCII.GetString(array));
//结果 c='C'