static Product BuildProduct(Builder builder) { builder.BuidProduct(); builder.BuidProduct1(); builder.BuidProduct2(); builder.BuidProduct2(); builder.BuidProduct2(); builder.BuidProduct3(); builder.BuidProduct3(); return builder.GetProduct(); }
public void Construct(Builder b) { b.BuildPartA(); b.BuildPartB(); }
// Builder uses a complex series of steps public void Construct(Builder builder) { builder.BuildPartA(); builder.BuildPartB(); }
public void Construct(Builder builder) { builder.Comprar1(); builder.Comprar2(); builder.Comprar3(); builder.Comprar4(); }
public Director(Builder builder) { this.builder = builder; }
public void Construct(Builder b) { b.AddParts(); }
public Director(Builder builder) { this.builder = builder; }
// 组装电脑 public void Construct(Builder builder) { builder.BuildPartCPU(); builder.BuildPartMainBoard(); }
public void CreatePart(Builder builder) { builder.CreatePartA(); builder.CreatePartB(); }
public ConcreteDirector(Builder builder) { _builder = builder; }
public void Construct() { Builder.Create(); Builder.AddWheels(); Builder.AddLights(); }