Пример #1
0
        private static void PrintEmployeeLz()
        {
            SingletonLazy fromEmployee = SingletonLazy.GetInstance;

            fromEmployee.Print("from employee");
        }
Пример #2
0
        //test lazy singleton
        private static void PrintStudentLz()
        {
            SingletonLazy fromStudent = SingletonLazy.GetInstance;

            fromStudent.Print("from student");
        }