What is the difference between List (of T) and Collection(of T)?
问题 I've seen them used in a lot of the same ways, and I am worried I'm about to go down a path in design that is irreversible if I don't understand this better. Also, I am using .NET. 回答1: Collection<T> is a customizable wrapper around IList<T> . While IList<T> is not sealed, it doesn't provide any customization points. Collection<T> 's methods are by default delegated to the standard IList<T> methods, but can be easily overridden to do what you want. It is also possible to wireup events inside