public Burger(BurgerBuilder builder) { this.mSize = builder.Size; this.mCheese = builder.Cheese; this.mPepporoni = builder.Pepporoni; this.mLettuce = builder.Lettuce; this.mTomato = builder.Tomato; }
public static void MainOLD() { var burger = new BurgerBuilder(6).AddCheese().AddLettuce().AddPepporoni().AddTomato().Build(); Console.WriteLine(burger.GetDescription()); }