void Main() { Builder builder = new ConcreteBuilder(); Director director = new Director(builder); director.Construct(); ProductBuild product = builder.GetResult(); }
private static void BuilderRun() { Builder builder1 = new ConcreteBuilder(); Director director = new Director(builder1); director.Construct(); Patterns.Classes.Builder.Product product = builder1.GetResult(); Console.WriteLine(product.parts[1]); }
static void Main(string[] args) { Builder builder = new ConcreteBuilder(); Director director = new Director(builder); BuilderClient client = new BuilderClient(); client.ClientCode(director, builder); }