Ejemplo n.º 1
0
 public void Addtopping(Topping topping)
 {
     if (Toppings.Count() == 10)
     {
         throw new ArgumentException("Number of toppings should be in range [0..10].");
     }
     Toppings.Add(topping);
 }