using System.Collections.Generic;
using System.Collections.ObjectModel;
public static void Main()
var customers = new CustomerCollection("Customer1;Customer2");
foreach (var customer in customers)
Console.WriteLine(customer.Name);
foreach (var customer in customers.Items)
Console.WriteLine("Items: " + customer.Name);
public Customer(string customer)
public string Name { get; set; }
public class CustomerCollection : Collection<Customer>
public CustomerCollection(string customerString)
.Where(s => !string.IsNullOrEmpty(s))
.Select(s => new Customer(s));
foreach (var customer in customers)
public new IEnumerable<Customer> Items