Esempio n. 1
0
        private static void PrintStudentdetails()
        {
            SingletonThreadSafe fromStudent = SingletonThreadSafe.GetInstance;

            fromStudent.PrintDetails("From Student");
        }
Esempio n. 2
0
        private static void PrintTeacherDetails()
        {
            SingletonThreadSafe fromTeacher = SingletonThreadSafe.GetInstance;

            fromTeacher.PrintDetails("From Teacher");
        }