示例#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");
        }