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]); }