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

            director.Construct();
            ProductBuild product = builder.GetResult();
        }
Ejemplo 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]);
        }
Ejemplo n.º 3
0
        static void Main(string[] args)
        {
            Builder  builder  = new ConcreteBuilder();
            Director director = new Director(builder);

            BuilderClient client = new BuilderClient();

            client.ClientCode(director, builder);
        }