c convert char to int
Code Example - c convert char to int
int i = (int)(c - '0');
csharp char to int
int val = (int)Char.GetNumericValue('8');