コード例 #1
0
        private static void PrintEmployeeDetails()
        {
            Singleton fromEmployee = Singleton.GetInstance;

            fromEmployee.PrintDetails("From Employee");
        }
コード例 #2
0
        private static void PrintEmployeeDetails()
        {
            Singleton fromEmployee = Singleton.GetSingletonEagerLazy;

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

            fromStudent.PrintDetails("From Student");
        }
コード例 #4
0
        private static void PrintStudentDetails()
        {
            Singleton fromStudent = Singleton.GetSingletonEagerLazy;

            fromStudent.PrintDetails("From Student");
        }