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); }