示例#1
0
文件: Builder.cs 项目: chuprov/NET
        void Main()
        {
            Builder  builder  = new ConcreteBuilder();
            Director director = new Director(builder);

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

            BuilderClient client = new BuilderClient();

            client.ClientCode(director, builder);
        }