letter to number converter c#

86

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

letter to number converter c# -

int index = (int)c % 32;

Comments

Submit
0 Comments