Example #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (roomType_ != null)
            {
                hash ^= RoomType.GetHashCode();
            }
            if (date_ != null)
            {
                hash ^= Date.GetHashCode();
            }
            if (Available != 0)
            {
                hash ^= Available.GetHashCode();
            }
            if (rateSchedule_ != null)
            {
                hash ^= RateSchedule.GetHashCode();
            }
            if (nightlyPrice_ != null)
            {
                hash ^= NightlyPrice.GetHashCode();
            }
            hash ^= requiredTags_.GetHashCode();
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (roomType_ != null)
            {
                hash ^= RoomType.GetHashCode();
            }
            if (date_ != null)
            {
                hash ^= Date.GetHashCode();
            }
            if (Available != 0)
            {
                hash ^= Available.GetHashCode();
            }
            if (rateSchedule_ != null)
            {
                hash ^= RateSchedule.GetHashCode();
            }
            if (nightlyPrice_ != null)
            {
                hash ^= NightlyPrice.GetHashCode();
            }
            hash ^= requiredTags_.GetHashCode();
            if (ReleasableHolds != 0)
            {
                hash ^= ReleasableHolds.GetHashCode();
            }
            if (IsPriceOverridden != false)
            {
                hash ^= IsPriceOverridden.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (date_ != null)
            {
                hash ^= Date.GetHashCode();
            }
            if (rateSchedule_ != null)
            {
                hash ^= RateSchedule.GetHashCode();
            }
            if (roomType_ != null)
            {
                hash ^= RoomType.GetHashCode();
            }
            if (nightlyPrice_ != null)
            {
                hash ^= NightlyPrice.GetHashCode();
            }
            if (IsPriceOverriddenBooking != false)
            {
                hash ^= IsPriceOverriddenBooking.GetHashCode();
            }
            return(hash);
        }