Exemplo n.º 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");
        }
Exemplo n.º 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");
        }