What is the most basic class that inherits ICollection<T>
Posted
by Martin Neal
on Stack Overflow
See other posts from Stack Overflow
or by Martin Neal
Published on 2010-05-04T01:36:29Z
Indexed on
2010/05/04
1:38 UTC
Read the original article
Hit count: 475
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!
© Stack Overflow or respective owner