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

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

            fromTeacher.PrintDetails("From Student");
        }