char c = 'A'; //char c = 'b'; you may use lower case character. int index = char.ToUpper(c) - 64;//index == 1
int index = (int)c % 32;