Open Chris3606 opened 1 year ago
Currently, if you pass an index and a count which overflow the edge of the backing array to the Shift* methods, they react differently. ShiftLeft will throw an ArgumentException, whereas ShiftRight will throw an IndexOutOfRange exception.
Shift*
ShiftLeft
ShiftRight
IndexOutOfRange
Ideally, this behavior would be consistent.
Currently, if you pass an index and a count which overflow the edge of the backing array to the
Shift*
methods, they react differently.ShiftLeft
will throw an ArgumentException, whereasShiftRight
will throw anIndexOutOfRange
exception.Ideally, this behavior would be consistent.