I have this code which gets the index of the '[' in the string. It then creates an integer from the next character in the string which I would assume would be '9' in this example. However value
is getting set to 57?
string text = "Red Onyx : Text 1 - [9]";
int index = text.IndexOf("[");
int value = Convert.ToInt16(text[index+1]);
I have tried doing just text[index], text[index -1], and text[index +2]