Exemple #1
0
        static void Main(string[] args)
        {
            Builder   builder   = new ConcreteBuilder();
            Directory directory = new Directory(builder);

            directory.Construct();
            House product = builder.GetResult();

            Console.WriteLine(new string('_', 30));
            product.Show();
        }
Exemple #2
0
        static void Main(string[] args)
        {
            Builder builder = new ConcreteBuilder();
            Foreman foreman = new Foreman(builder);

            foreman.Construct();

            House house = builder.GetHouse();

            Console.ReadKey();
        }