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