Example #1
0
        private static void PrintEmployeeDetails()
        {
            Singleton fromEmployee = Singleton.GetInstance;

            fromEmployee.PrintDetails("From Employee");
        }
        private static void PrintEmployeeDetails()
        {
            Singleton fromEmployee = Singleton.GetSingletonEagerLazy;

            fromEmployee.PrintDetails("From Employee");
        }
Example #3
0
        private static void PrintStudentDetails()
        {
            Singleton fromStudent = Singleton.GetInstance;

            fromStudent.PrintDetails("From Student");
        }
        private static void PrintStudentDetails()
        {
            Singleton fromStudent = Singleton.GetSingletonEagerLazy;

            fromStudent.PrintDetails("From Student");
        }