Beispiel #1
0
        static void Main(string[] args)
        {
            Director d  = new Director();
            IBuilder b1 = new ConcreteBuilder1();

            d.Construct(b1);
            Product p1 = b1.GetResult();

            p1.ShowResult();

            IBuilder b2 = new ConcreteBuilder2();

            d.Construct(b2);
            Product p2 = b2.GetResult();

            p2.ShowResult();

            Console.ReadKey();
        }