public override int GetHashCode() { int hashCode = 1832843767; hashCode = hashCode * -1521134295 + AppointmentID.GetHashCode(); hashCode = hashCode * -1521134295 + UserID.GetHashCode(); hashCode = hashCode * -1521134295 + DoctorID.GetHashCode(); hashCode = hashCode * -1521134295 + AppDate.GetHashCode(); hashCode = hashCode * -1521134295 + DoctorCalendarID.GetHashCode(); hashCode = hashCode * -1521134295 + StartTime.GetHashCode(); hashCode = hashCode * -1521134295 + EndTime.GetHashCode(); return(hashCode); }
public override int GetHashCode() { int hashCode = 1968497320; hashCode = hashCode * -1521134295 + DoctorID.GetHashCode(); hashCode = hashCode * -1521134295 + UserID.GetHashCode(); hashCode = hashCode * -1521134295 + AppointmentID.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(UserName); hashCode = hashCode * -1521134295 + StartTime.GetHashCode(); hashCode = hashCode * -1521134295 + EndTime.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(HospitalName); hashCode = hashCode * -1521134295 + Date.GetHashCode(); return(hashCode); }