예제 #1
0
        public static void Add(Customer customer)
        {
            if (customers.Contains(customer))
            {
                throw new ArgumentException("Customer " + customer + " already known.");
            }

            customers.Add(customer);
        }
예제 #2
0
 public Order(Customer customer)
 {
     this.customer = customer;
 }