Why IList inherits IEnumerable and IEnumerable again

后端 未结 1 1930
面向向阳花
面向向阳花 2021-01-24 03:39

I have taken a look on IList and ICollection on MSDN by chance, and see that the definition of these two interfaces are:

public interface IColl         


        
1条回答
  •  失恋的感觉
    2021-01-24 04:11

    The documentation is generated that way so you can see what interfaces a type implements without having to follow transitive links through the interface inheritance hierarchy.

    0 讨论(0)
提交回复
热议问题