How can I get the ASCII code for a character in C#?
Ask by Anonymous User
Updated 22 Sep 2020
Casting the char to an int will give you the ASCII value: char c = 'f';
System.Console.WriteLine((int)c);