List or BusinessObjectCollection?

后端 未结 18 1191
庸人自扰
庸人自扰 2020-12-23 11:11

Prior to C# generics, everyone would code collections for their business objects by creating a collection base that implemented IEnumerable

IE:

publi         


        
18条回答
  •  心在旅途
    2020-12-23 11:39

    It's recommended that in public API's not to use List, but to use Collection

    If you are inheriting from it though, you should be fine, afaik.

提交回复
热议问题