List or BusinessObjectCollection?

后端 未结 18 1157
庸人自扰
庸人自扰 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条回答
  •  旧时难觅i
    2020-12-23 11:39

    6 of 1, half dozen of another

    Either way its the same thing. I only do it when I have reason to add custom code into the BusinessObjectCollection.

    With out it having load methods return a list allows me to write more code in a common generic class and have it just work. Such as a Load method.

提交回复
热议问题