C#: What would you name an IEnumerable class?

Posted by Svish on Stack Overflow See other posts from Stack Overflow or by Svish
Published on 2009-07-14T19:21:08Z Indexed on 2010/05/18 2:00 UTC
Read the original article Hit count: 316

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?

© Stack Overflow or respective owner

Related posts about .NET

Related posts about naming-conventions