예제 #1
0
 // Builder uses a complex series of steps
 //
 public void Assemble(SandwichBuilder sandwichBuilder)
 {
     sandwichBuilder.AddBread();
     sandwichBuilder.AddMeats();
     sandwichBuilder.AddCheese();
     sandwichBuilder.AddVeggies();
     sandwichBuilder.AddCondiments();
 }
예제 #2
0
 public SandwichMaker(SandwichBuilder SandwichBuilder)
 {
     _SandwichBuilder = SandwichBuilder;
 }
 public SandwichMaker(SandwichBuilder builder)
 {
     this.builder = builder;
 }
예제 #4
0
 public SandwichMaker(SandwichBuilder builder)
 {
     _Builder = builder;
 }
예제 #5
0
 public SandwichMaker(SandwichBuilder sandwichBuilder)
 {
     this.builder = sandwichBuilder;
 }