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

            if (reservationId_ != null)
            {
                hash ^= ReservationId.GetHashCode();
            }
            if (MasterFolioStatus != 0)
            {
                hash ^= MasterFolioStatus.GetHashCode();
            }
            if (masterFolio_ != null)
            {
                hash ^= MasterFolio.GetHashCode();
            }
            hash ^= clientFolios_.GetHashCode();
            if (GuaranteeStatus != 0)
            {
                hash ^= GuaranteeStatus.GetHashCode();
            }
            if (guaranteeDueOn_ != null)
            {
                hash ^= GuaranteeDueOn.GetHashCode();
            }
            if (hostProperty_ != null)
            {
                hash ^= HostProperty.GetHashCode();
            }
            if (MasterFolioState != 0)
            {
                hash ^= MasterFolioState.GetHashCode();
            }
            hash ^= clientFolioReservations_.GetHashCode();
            if (masterDateRange_ != null)
            {
                hash ^= MasterDateRange.GetHashCode();
            }
            return(hash);
        }
Пример #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            hash ^= chargeCredits_.GetHashCode();
            hash ^= cardSales_.GetHashCode();
            hash ^= payments_.GetHashCode();
            hash ^= refunds_.GetHashCode();
            if (grossPayments_ != null)
            {
                hash ^= GrossPayments.GetHashCode();
            }
            if (grossRefunds_ != null)
            {
                hash ^= GrossRefunds.GetHashCode();
            }
            if (availablePaymentAuthorizationBalance_ != null)
            {
                hash ^= AvailablePaymentAuthorizationBalance.GetHashCode();
            }
            if (availableGuaranteeAuthorizationBalance_ != null)
            {
                hash ^= AvailableGuaranteeAuthorizationBalance.GetHashCode();
            }
            if (masterFolio_ != null)
            {
                hash ^= MasterFolio.GetHashCode();
            }
            hash ^= clientFolios_.GetHashCode();
            if (MasterAccruesLodging != false)
            {
                hash ^= MasterAccruesLodging.GetHashCode();
            }
            if (MasterAccruesIncidentals != false)
            {
                hash ^= MasterAccruesIncidentals.GetHashCode();
            }
            return(hash);
        }