Exemple #1
0
        public void RemoveTopping(string topName)
        {
            Topping topping = null;

            foreach (Topping top in Toppings)
            {
                if (top.TopName == topName)
                {
                    topping = top;
                    break;
                }
            }

            Toppings.Remove(topping);
        }
 public void AddTopping(Topping topping)
 {
     Toppings.Add(topping);
 }