From: Nat P. <nat...@gm...> - 2006-03-16 19:46:16
|
Good point. At the moment I think ICollection is only inherited by IList but if .NET ever does support sets then sets would probably implement ICollection as well. It's probably best to play safe and only support IList, not ICollection. --Nat. On 3/16/06, Mike Mason <mik...@gm...> wrote: > On 3/16/06, Nat Pryce <nat...@gm...> wrote: > > > So, I was going to add a special case in the EqualMatcher for objects > > that implement ICollection. Can anybody think of a reason not to? > > > I think that makes a lot of sense (we were going to provide custom matche= rs > for this, but if we can modify the default behaviour to work that's even > better, principle of least suprise and all that). > > Does ICollection specify ordering of elements? I'm just wondering because > there's a difference between equality of a list and equality of a set > (although .NET appears to ignore the "set" concept entirely). > > Cheers, > Mike. > > |