예제 #1
0
 internal void AddStudent(Student student)
 {
     lock (_lock)
     {
         // Once locked, you can manipulate the collection safely from another thread
         StudentItems.Add((Student)student.Clone());
     }
 }