The code below is throwing an error at the beginning of the if statement. I believe it has something do with the character array, however I am not sure why that is. Any help would be much appreciated.
public void display_bits(int count)
{
//bits that will be displayed
string[] disp_bits = new string[1000];
string[] disp_to_bits = new string[1000];
int disp_count = 0;
for (int i = 0; i <= count; i++)
{
char[] chars = { '~', '+', '*' };
if (bits[i].IndexOfAny(chars) != 0)
{
bits[i] = disp_bits[disp_count];
to_bits[i] = disp_to_bits[disp_count];
disp_count++;
}
}
}