H
Helge Jensen
Daniel said:Out of curiosity, does the v2 ICollection<T> satisfy your requirements?
I havent looked at the standard library for C# with generics yet, but if
your description is accurate, then yes, it would satisfy the requirements.
The current ICollection only exposes size Count and IEnumerable, which
prevents user from even asking "is foo in bar" without doing an enumeration.
While I would like to see set semantics put in stone, it seems to me this
generic ICollection suits the needs and a forward looking generic ISet
interface would be little more than a marker.
Actually, interfaces are often little more than "markers". But, they are
nice to have in the std-library, so different implementations can be
passed between components through the interface.