[Mono-list] bug in ArrayList::RemoveRange ()

Duncan Mak duncan@ximian.com
12 Jan 2003 12:25:54 -0500


On Sun, 2003-01-12 at 11:59, Varga Zoltan wrote:
>                                          Hi,
> 
>   Under MS .NET, RemoveRange () allows a zero sized removal
> at the end of the list, i.e. 
> 
> aList.RemoveRange (aList.Count, 0)
> 
> works. There is code out there which depends on this behavior.
> 
> The attached patch fixes this. It also cleans up the
> argument checking code so the raised exceptions have the
> same message as under MS.NET.

I just committed this patch, however it did not apply cleanly for me, so
I had to do it by hand.

-- 
Duncan Mak <duncan@ximian.com>