[Mono-list] Array should have a Count property?
   
    Daniel Weber
     
    dweber1@austin.rr.com
       
    Wed, 21 Nov 2001 16:43:42 -0600
    
    
  
Arrays are kind of a differant case than the other data structures, though, 
since they can have multiple dimensions.  I kind of got the impression from 
reading on arrays that the have:
1) length - total  number of elements
2) Rank - number of dimesions
It's up to the person using the array to know how many elements in the array 
are valid (like arrays in C, sort of).
I'm not sure what count would return, the number of unique assignments?  Then 
the array would have to keep track of what was valid.
Just my two cents...
On Wednesday 21 November 2001 17:03, Nick Drochak wrote:
> > This is puzzling.  The documentation for ICollection.Count
> > says (this wording is very strange):
> >
> > 	`When implemented by a class, gets the number....'
>
> I noticed this too.  However, I would be stunned if this one interface
> class is an exception to the rule. I just thought the docs for
> ICollection had a different author and thus different wording.
>
> "When" shouldn't mean "if".  Surely the spec says that a class "must"
> implement the entire interface, no?
>