Never attempt to catch an IndexOutOfRangeException when using arrays. This exception can be avoided simply by making sure your index is within the range - which in arrays means larger than -1 and smaller than array.Length.
For more information, read Eric Lippert's blog post entitled Vexing Exceptions
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Never attempt to catch an
IndexOutOfRangeException
when using arrays. This exception can be avoided simply by making sure your index is within the range - which in arrays means larger than -1 and smaller than array.Length.For more information, read Eric Lippert's blog post entitled Vexing Exceptions