public override int GetHashCode()
        {
            int hash = 1;

            if (rateSchedule_ != null)
            {
                hash ^= RateSchedule.GetHashCode();
            }
            hash ^= priceUpdates_.GetHashCode();
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (rateSchedule_ != null)
            {
                hash ^= RateSchedule.GetHashCode();
            }
            if (dateRange_ != null)
            {
                hash ^= DateRange.GetHashCode();
            }
            return(hash);
        }
Пример #3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (entityId_ != null)
            {
                hash ^= EntityId.GetHashCode();
            }
            if (Status != 0)
            {
                hash ^= Status.GetHashCode();
            }
            if (TaxExempt != false)
            {
                hash ^= TaxExempt.GetHashCode();
            }
            if (TaxId.Length != 0)
            {
                hash ^= TaxId.GetHashCode();
            }
            if (GroupPaysLodging != false)
            {
                hash ^= GroupPaysLodging.GetHashCode();
            }
            if (GroupPaysIncidentals != false)
            {
                hash ^= GroupPaysIncidentals.GetHashCode();
            }
            if (AdditionalNotes.Length != 0)
            {
                hash ^= AdditionalNotes.GetHashCode();
            }
            if (CustomerBookingId.Length != 0)
            {
                hash ^= CustomerBookingId.GetHashCode();
            }
            if (dateRange_ != null)
            {
                hash ^= DateRange.GetHashCode();
            }
            if (rateSchedule_ != null)
            {
                hash ^= RateSchedule.GetHashCode();
            }
            if (group_ != null)
            {
                hash ^= Group.GetHashCode();
            }
            if (confirmationTemplateId_ != null)
            {
                hash ^= ConfirmationTemplateId.GetHashCode();
            }
            if (bookingMethod_ != null)
            {
                hash ^= BookingMethod.GetHashCode();
            }
            if (arrivalTemplateId_ != null)
            {
                hash ^= ArrivalTemplateId.GetHashCode();
            }
            if (reservationSourceId_ != null)
            {
                hash ^= ReservationSourceId.GetHashCode();
            }
            if (travelAgent_ != null)
            {
                hash ^= TravelAgent.GetHashCode();
            }
            if (cancellationPolicy_ != null)
            {
                hash ^= CancellationPolicy.GetHashCode();
            }
            if (GroupName.Length != 0)
            {
                hash ^= GroupName.GetHashCode();
            }
            return(hash);
        }