예제 #1
0
        private static void PrintEmployeeDetailsLazy()
        {
            SingletonLazyEager fromEmployee = SingletonLazyEager.GetInstance;

            fromEmployee.PrintDetails("From Employee");
        }
예제 #2
0
        private static void PrintStudentDetailsLazy()
        {
            SingletonLazyEager fromStudent = SingletonLazyEager.GetInstance;

            fromStudent.PrintDetails("From Student");
        }