public Burger Create(IIngredientFactory IngredientFactory) { var burger = new FishBurger(); //// 備料 burger.Bread = IngredientFactory.GetBread(); burger.Veggie = IngredientFactory.GetVeggie(); //// 準備魚肉 burger.Meat = IngredientFactory.GetFish(); return(burger); }