static void Builder() { var dir = new Director(); var builder = new SpecificBuilder(); dir.Builder = builder; dir.AllBuild(); Console.WriteLine(builder.GetProduct().ToString()); }
static void Builder() { var dir = new Director(); var builder = new SpecificBuilder(); dir.Builder = builder; dir.AllBuild(); Console.WriteLine(builder.GetProduct().ToString()); }