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

            if (entityId_ != null)
            {
                hash ^= EntityId.GetHashCode();
            }
            if (IsForExistingIiReservation != false)
            {
                hash ^= IsForExistingIiReservation.GetHashCode();
            }
            if (dateRange_ != null)
            {
                hash ^= DateRange.GetHashCode();
            }
            if (reservedItem_ != null)
            {
                hash ^= ReservedItem.GetHashCode();
            }
            if (QuantityHeldByExistingReservation != 0)
            {
                hash ^= QuantityHeldByExistingReservation.GetHashCode();
            }
            return(hash);
        }
示例#2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (entityId_ != null)
            {
                hash ^= EntityId.GetHashCode();
            }
            if (reservation_ != null)
            {
                hash ^= Reservation.GetHashCode();
            }
            if (dateRange_ != null)
            {
                hash ^= DateRange.GetHashCode();
            }
            if (reservedItem_ != null)
            {
                hash ^= ReservedItem.GetHashCode();
            }
            if (AmountReserved != 0)
            {
                hash ^= AmountReserved.GetHashCode();
            }
            if (totalCost_ != null)
            {
                hash ^= TotalCost.GetHashCode();
            }
            if (IncidentalItemName.Length != 0)
            {
                hash ^= IncidentalItemName.GetHashCode();
            }
            return(hash);
        }