Why does List<T> implement IList<T>, ICollection<T> and IEnumerable<T>?

Viewed 6006

If you go to definition of List<T> you would see the following:

public class List<T> : IList<T>, ICollection<T>, IEnumerable<T>

IList<T> already inherits from both ICollection<T> and IEnumerable<T>.

Wouldn't it have been sufficient if List<T> only implemented IList<T>?

4 Answers
Related