Esempio n. 1
0
 public void AddStudent(Student student)
 {
     if (students.Contains(student))
     {
         throw new ArgumentException("The student has already been added.");
     }
     this.students.Add(student);
 }
Esempio n. 2
0
 public void RemoveStudent(Student student)
 {
     this.students.Remove(student);
 }