C#: What would you name an IEnumerable class?
- by Svish
When reading this question I started to wonder a bit. Say you have these two:
class ProductCollection : ICollection<Product>
class ProductList : IList<Product>
What would you call one that were an IEnumerable<Product>?
class Product--- : IEnumerable<Product>
Before I read that other question I might have called it a ProductCollection actually, but taking the new info into account, that would have been a bit misleading since it does not implement ICollection<Product>. Could you call it Products?
var products = new Products(); // products is/are products
Almost works but sounds a bit strange... What would you call it?