Just cast your char value to an int: C#. char c = '0'; Console.WriteLine("ASCII code of '0' is " + ((int)c).ToString());.
確定! 回上一頁