Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 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);
     }
 }
Esempio n. 3
0
 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);
 }