How can I get the ASCII code for a character in C#?
2777
06-Jan-2011
Anonymous User
06-Jan-2011Casting the char to an int will give you the ASCII value: char c = 'f';
System.Console.WriteLine((int)c);