コード例 #1
0
ファイル: Chef.cs プロジェクト: fred2u/csharp-design-patterns
        public void Make(IRecipe recipe)
        {
            if (recipe == null)
            {
                throw new ArgumentNullException(nameof(recipe));
            }

            recipe.GatherIngredients(_fridge);
            recipe.Cook();
            recipe.Serve();
        }