/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var hashCode = 41; // Suitable nullity checks etc, of course :) if (Id != null) { hashCode = hashCode * 59 + Id.GetHashCode(); } if (Name != null) { hashCode = hashCode * 59 + Name.GetHashCode(); } if (RoomNumber != null) { hashCode = hashCode * 59 + RoomNumber.GetHashCode(); } if (WaitingList != null) { hashCode = hashCode * 59 + WaitingList.GetHashCode(); } if (PredefinedConditions != null) { hashCode = hashCode * 59 + PredefinedConditions.GetHashCode(); } return(hashCode); } }
public override int GetHashCode() { int hash = 1; if (checkInDate_ != null) { hash ^= CheckInDate.GetHashCode(); } if (averageRate_ != null) { hash ^= AverageRate.GetHashCode(); } if (ReservationBookingNumber.Length != 0) { hash ^= ReservationBookingNumber.GetHashCode(); } if (reservationId_ != null) { hash ^= ReservationId.GetHashCode(); } if (RoomNumber.Length != 0) { hash ^= RoomNumber.GetHashCode(); } if (guestId_ != null) { hash ^= GuestId.GetHashCode(); } if (RoomType.Length != 0) { hash ^= RoomType.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (entityId_ != null) { hash ^= EntityId.GetHashCode(); } if (RoomNumber.Length != 0) { hash ^= RoomNumber.GetHashCode(); } if (Description.Length != 0) { hash ^= Description.GetHashCode(); } if (AdditionalDescription.Length != 0) { hash ^= AdditionalDescription.GetHashCode(); } if (NightsOccupiedCounter != 0) { hash ^= NightsOccupiedCounter.GetHashCode(); } if (lastCleanedAt_ != null) { hash ^= LastCleanedAt.GetHashCode(); } if (MaintenanceState != 0) { hash ^= MaintenanceState.GetHashCode(); } if (roomTypeId_ != null) { hash ^= RoomTypeId.GetHashCode(); } if (RoomTypeName.Length != 0) { hash ^= RoomTypeName.GetHashCode(); } if (connectedRoom_ != null) { hash ^= ConnectedRoom.GetHashCode(); } if (TrunkId.Length != 0) { hash ^= TrunkId.GetHashCode(); } if (occupyingReservation_ != null) { hash ^= OccupyingReservation.GetHashCode(); } if (KcrRoomNumber.Length != 0) { hash ^= KcrRoomNumber.GetHashCode(); } return(hash); }