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

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

            fromStudent.Print("from student");
        }