[Mono-list] Array should have a Count property?

Nick Drochak ndrochak@gol.com
Fri, 23 Nov 2001 11:15:48 +0900


> In other words, Count should be coded like this:
>      int ICollection.Count {get {Length;}}
> This ensures that the property will be available only after 
> casting Array to ICollection. I'm not sure about the error 
> thrown by testsuite, it could be due to the Array itself or 
> maybe because of System.Runtime.CompilerServices.InitializeArray call.

Ah ha.  There's the magic. In that case, I'm guessing that Array is
.overriding Count with Length.

OK, this will help me look into what's happening with the mono classes.

Thanks,
Nick