public static void BuilderExample() { Console.WriteLine("---------- Builder example"); var myWebSite = new WebSiteBuilder("My Site").AddBlogModule() .AddImageGalleryModule() .AddNewsModule() .Build(); Console.WriteLine(myWebSite.GetSiteDescription()); }
static void Main(string[] args) { //sample 1 Console.WriteLine("---------- Builder example"); var myWebSite = new WebSiteBuilder("My Site") .AddBlogModule() .AddImageGalleryModule() .Build(); Console.WriteLine(myWebSite.GetSiteDescription()); Console.ReadKey(); }