public static void Add(Customer customer) { if (customers.Contains(customer)) { throw new ArgumentException("Customer " + customer + " already known."); } customers.Add(customer); }
public Order(Customer customer) { this.customer = customer; }