letter to number converter c# code example
Example 1: letter to number converter c#
char c = 'A';
//char c = 'b'; you may use lower case character.
int index = char.ToUpper(c) - 64;//index == 1
Example 2: letter to number converter c#
int index = (int)c % 32;