[Mono-list] ArrayList.GetEnumerator
Nick Drochak
ndrochak@gol.com
Sun, 4 Nov 2001 07:37:47 +0900
Alexander,
I agree.
The name of the concrete class is right there in the VS.Net debugger's
local window, so I can't help but see the name :)
As you and others have suggested, I'll just make a "simple" class that
implements the interface and that'll be it for now. It'll be better than
just returning null :)
Thanks,
Nick D.
> -----Original Message-----
> From: Alexander Klyubin [mailto:klyubin@aqris.com]
> Sent: Sunday, November 04, 2001 4:49 AM
> To: Nick Drochak
> Subject: Re: [Mono-list] ArrayList.GetEnumerator
>
>
> As I see it, you should not worry about the concrete class that
> implements IEnumerable interface. As far as contract for
> .GetEnumerator
> is concerned it is allowed to return any class implementing
> IEnumerable.
> I think you should stop looking and names of concrete
> classes, this if
> not the right way to go. Just implement the contract for the method
> properly. Also, looking at methods provided by the class returned by
> Microsoft implementation might be a violation of intellectual
> property
> rights...
>
> Regards,
> Alexander Klyubin
>
> Nick Drochak wrote:
>
> > Hi all,
> >
> > I found that one of my ReadOnlyCollection tests is failing
> because we
> > haven't implemented ArrayList.GetEnumerator() yet.
> >
> > I thought I'd just whip that one out real quick so my test
> would pass,
> > but low and behold I find out MS's
> ArrayList.GetEnumerator() returns
> > an object of type "ArrayListEnumeratorSimple." I can't find a
> > reference to this class anywhere.
> >
> > Perhaps it's just an internal (embedded?) class in the MS ArrayList
> > class and any ol' class that implements IEnumerator will do? Any
> > ideas or opinions on this one? I hate it when my test fails.
> >
> > Thanks,
> > Nick D.
> >
> >
> >
> > _______________________________________________
> > Mono-list maillist - Mono-list@ximian.com
> > http://lists.ximian.com/mailman/listinfo/mono-list
> >
>
>
>
>
>