What is the most basic class that inherits ICollection<T>
- by Martin Neal
I need a generic collection class which I can add to, and enumerate over. Since ICollection<T> inherits from IEnumerable<T>, the class really just needs to inherit from ICollection<T>. Is there a simple generic class in the BCL that just inherits ICollection<T>? If not, then what class comes closest?
I would guess List<T> which is what I've been using. Is there anything better (by which I mean [smaller/faster/simpler])?
Thanks in advance!