コード例 #1
0
 public Burger(BurgerBuilder builder)
 {
     this.mSize      = builder.Size;
     this.mCheese    = builder.Cheese;
     this.mPepporoni = builder.Pepporoni;
     this.mLettuce   = builder.Lettuce;
     this.mTomato    = builder.Tomato;
 }
コード例 #2
0
        public static void MainOLD()
        {
            var burger = new BurgerBuilder(6).AddCheese().AddLettuce().AddPepporoni().AddTomato().Build();

            Console.WriteLine(burger.GetDescription());
        }