コード例 #1
0
 public Pizza(string _name, IMasa _masa, ISalsa _salsa, List <IAdicional> _adicionales)
 {
     this._name        = _name;
     this._masa        = _masa;
     this._salsa       = _salsa;
     this._adicionales = _adicionales;
 }
コード例 #2
0
 public Pizza(PizzaBuilder pizzaBuilder)
 {
     this.pizzaBuilder = pizzaBuilder;
     this._name        = pizzaBuilder.Name;
     this._masa        = pizzaBuilder.masa;
     this._salsa       = pizzaBuilder.salsa;
     this._adicionales = pizzaBuilder.adicionales;
 }
コード例 #3
0
 public PizzaBuilder CreateSalsa(ISalsa salsa)
 {
     this.salsa = salsa;
     return(this);
 }