I am trying to convert integers (I got the integers from converting characters to their ascii codes) into an array of integers but when I run the program I get an error that says "Object Reference Not Set to an Instance of an Object" and it is referring to the last line in the code. What am I doing wrong here?
Thank you for any input, I am relatively new.
foreach (char letter in arReverse)
{
int count = -1;
count = count + 1;
int num = (System.Convert.ToInt32(letter + 5));
Console.Write(System.Convert.ToInt32(letter + 5));
Console.Write(" ");
arNum[count] = num;
}