Ejemplo n.º 1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (dateRange_ != null)
            {
                hash ^= DateRange.GetHashCode();
            }
            if (reservation_ != null)
            {
                hash ^= Reservation.GetHashCode();
            }
            if (roomType_ != null)
            {
                hash ^= RoomType.GetHashCode();
            }
            if (TaxExempt != false)
            {
                hash ^= TaxExempt.GetHashCode();
            }
            if (AdultGuestCount != 0)
            {
                hash ^= AdultGuestCount.GetHashCode();
            }
            hash ^= reservationTags_.GetHashCode();
            if (IsMockPriceRequiredForGroup != false)
            {
                hash ^= IsMockPriceRequiredForGroup.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (dateRange_ != null)
            {
                hash ^= DateRange.GetHashCode();
            }
            if (reservation_ != null)
            {
                hash ^= Reservation.GetHashCode();
            }
            if (roomType_ != null)
            {
                hash ^= RoomType.GetHashCode();
            }
            if (AdultGuestCount != 0)
            {
                hash ^= AdultGuestCount.GetHashCode();
            }
            if (ChildGuestCount != 0)
            {
                hash ^= ChildGuestCount.GetHashCode();
            }
            hash ^= tags_.GetHashCode();
            return(hash);
        }