public bool RemoveTopping(Topping topping) { if (DoesToppingExist(topping, false)) { return(ToppingList.Remove(topping)); } System.Console.WriteLine("topping " + topping + "was not added yet"); return(false); }
//returns true if 'topping' is successfully removed from 'toppingList' public bool RemoveTopping(Topping topping) { return(ToppingList.Remove(topping)); }