public void DeleteStudent(Student student) { for (int i = 0; i < this.students.Length; i++) { if ((this.students[i].GetId() == student.GetId()) & (this.students[i].GetName() == student.GetName()) & (this.students[i].GetLastName() == student.GetLastName())) { this.students[i].Dispose(); } } }