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