示例#1
0
        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);
        }