Answers for "letter to number converter c#"

C#
0

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
Posted by: Guest on August-04-2020
0

letter to number converter c#

int index = (int)c % 32;
Posted by: Guest on August-04-2020

C# Answers by Framework

Browse Popular Code Answers by Language