Пример #1
0
        private static void PrintEmployeeDetails()
        {
            Singletone_ThreadSafety fromEmployee = Singletone_ThreadSafety.GetInstance();

            fromEmployee.PrintDetails("From Employee");
        }
Пример #2
0
        private static void PrintStudentDetails()
        {
            Singletone_ThreadSafety fromStudent = Singletone_ThreadSafety.GetInstance();

            fromStudent.PrintDetails("From Student");
        }