c# convert char to int ascii code example
Example 1: c# char to int
int val = (int)Char.GetNumericValue('8');
Example 2: letter to number converter c#
int index = (int)c % 32;
int val = (int)Char.GetNumericValue('8');
int index = (int)c % 32;