Esempio n. 1
0
        private static void PrintEmployeeLz()
        {
            SingletonLazy fromEmployee = SingletonLazy.GetInstance;

            fromEmployee.Print("from employee");
        }
Esempio n. 2
0
        //test lazy singleton
        private static void PrintStudentLz()
        {
            SingletonLazy fromStudent = SingletonLazy.GetInstance;

            fromStudent.Print("from student");
        }