Why am I getting a System.ArgumentOutOfRangeException error?

  • Thread starter Thread starter In3rstella
  • Start date Start date
I

In3rstella

Guest
I have this for loop:

for(int i = 0; i < resList; i++)
{
Console.WriteLine(resList);
}


it's supposed to print out all the items in the list which it does but after running it I get this error message from VS:

System.ArgumentOutOfRangeException after it prints out all the items in the list. How is it out of range?

Continue reading...
 
Back
Top