Ejemplo n.º 1
0
        public static void Execute()
        {
            ConsoleExtension.WriteSeparator("Lazy initialization example");

            var college = new LazyCollege();

            college.ShowDetails();

            var dotNetCollege = new DotNetLazyCollege();

            dotNetCollege.ShowDetails();
        }
Ejemplo n.º 2
0
        public static void Execute()
        {
            ConsoleExtension.WriteSeparator("Lazy initialization example");

            var college = new LazyCollege();

            Console.WriteLine("Give me more details about the college!");
            college.ShowDetails();

            var dotNetCollege = new DotNetLazyCollege();

            Console.WriteLine("\nGive me more details about the college!");
            dotNetCollege.ShowDetails();
        }