Implementing IList interface

后端 未结 6 1190
温柔的废话
温柔的废话 2020-12-09 11:29

I am new to generics. I want to implement my own collection by deriving it from IList interface.

Can you please provide me some link to a class

6条回答
  •  一个人的身影
    2020-12-09 12:01

    Inheriting from List is often the quickest approach but can be limiting later on down the line if you need to inherit from another class (e.g. ContextBoundObject etc.). It's pretty quick to implement IList and as pointed out above, it gives a lot more flexibility.

提交回复
热议问题