public override bool Equals(object obj) { Student another = (Student)obj; return(LastName.ToLower().Equals(another.LastName.ToLower()) && FirstName.ToLower().Equals(another.FirstName.ToLower()) && Patronymic.ToLower().Equals(another.Patronymic.ToLower()) && BirthDate.Equals(another.BirthDate) && EnterDate.Equals(another.EnterDate) && Char.ToLower(GroupIndex).Equals(Char.ToLower(another.GroupIndex)) && Faculty.ToLower().Equals(another.Faculty.ToLower()) && Specialization.ToLower().Equals(another.Specialization.ToLower()) && Performance == another.Performance); }
public override bool Equals(object obj) { Student another = (Student)obj; return(Surname.ToLower().Equals(another.Surname.ToLower()) && Name.ToLower().Equals(another.Name.ToLower()) && Patronymic.ToLower().Equals(another.Patronymic.ToLower()) && DateOfBirth.Equals(another.DateOfBirth) && EnterDate.Equals(another.EnterDate) && GroupIndex.ToLower().Equals(another.GroupIndex.ToLower()) && Faculty.ToLower().Equals(another.Faculty.ToLower()) && Specialty.ToLower().Equals(another.Specialty.ToLower()) && AcademicPerformance == another.AcademicPerformance); }