Exemplo n.º 1
0
        void Main()
        {
            Builder  builder  = new ConcreteBuilder();
            Director director = new Director(builder);

            director.Construct();
            ProductBuild product = builder.GetResult();
        }
Exemplo n.º 2
0
        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]);
        }