回答1

From MSDN

string value = "9quali52ty3";

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

You now have an array of the ASCII value of the bytes. I got the following:

57 113 117 97 108 105 53 50 116 121 51

 

回答2

string s = "9quali52ty3";
foreach(char c in s)
{
  Console.WriteLine((int)c);
}

 

相关文章:

  • 2021-07-20
  • 2022-12-23
  • 2021-12-05
  • 2022-12-23
  • 2021-09-01
  • 2021-08-13
  • 2021-12-08
  • 2021-12-06
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-06-28
  • 2021-05-25
  • 2022-02-03
  • 2021-06-25
  • 2021-10-21
相关资源
相似解决方案