我很困惑我应该从我的公共API方法和属性返回哪种集合类型.
我想到的收藏品是IList,ICollection和Collection.
IList
ICollection
Collection
返回其中一种类型总是优先于其他类型,还是取决于具体情况?
.net c# generics collections
.net ×1
c# ×1
collections ×1
generics ×1