System.IndexOutOfRangeException – Index was outside the bounds of the array
The System.IndexOutOfRangeException – Index was outside the bounds of the array is a runtime exception in C# that occurs when you try to access an array or collection with an….