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() { unchecked { var hashCode = RegNumber; hashCode = (hashCode * 397) ^ (Country != null ? Country.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Inventors != null ? Inventors.GetHashCode() : 0); hashCode = (hashCode * 397) ^ AppDate.GetHashCode(); hashCode = (hashCode * 397) ^ PubDate.GetHashCode(); hashCode = (hashCode * 397) ^ (Name != null ? Name.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Note != null ? Note.GetHashCode() : 0); hashCode = (hashCode * 397) ^ CountPages; return(hashCode); } }
protected bool Equals(Patent other) { return(RegNumber == other.RegNumber && string.Equals(Country, other.Country) && Equals(Inventors, other.Inventors) && AppDate.Equals(other.AppDate) && PubDate.Equals(other.PubDate) && string.Equals(Name, other.Name) && string.Equals(Note, other.Note) && CountPages == other.CountPages); }