[Mono-list] Some more class library compliance issues
13 Mar 2002 19:46:12 -0500
On Tue, 2002-03-12 at 10:27, Piers Haken wrote:
> Does it really matter that, for example, ArrayList.FixedSize() returns
> ArrayList and not Ilist (since ArrayList is derived from Ilist)? Code
> that compiles with CSC should compile on MCS, but not necessarily
I fixed this too. I think the overloaded method that takes in an IList
should also return an IList, since a) that's what the 1.0 docs say and
b) if we return an ArrayList, then someone trying to do this:
IList a = ArrayList.FixedSize ();
will have a missing cast.
(i.e. IList b = (IList) ArrayList.FixedSize (); )
It looks like there are a number of missing methods in this class. My
last final is tomorrow morning, so maybe I can spend a little time
tinkering with this as well.