Ejemplo n.º 1
0
        private static void PrintStudentdetails()
        {
            SingletonThreadSafeDemo fromStudent = SingletonThreadSafeDemo.GetSingletonThreadSafeDemo;

            fromStudent.PrintDetails("From Student");
        }
Ejemplo n.º 2
0
        private static void PrintTeacherDetails()
        {
            SingletonThreadSafeDemo fromTeacher = SingletonThreadSafeDemo.GetSingletonThreadSafeDemo;

            fromTeacher.PrintDetails("From Student");
        }