dotnet · dotnet/IndexOutOfRangeException
IndexOutOfRangeException
IndexOutOfRangeException
Thrown when an array or collection is accessed with an index that is outside its valid range (less than zero or greater than or equal to its Length). Prefer ArgumentOutOfRangeException in your own APIs; this type is reserved for the runtime.