/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { int hashCode = 41; if (Id != null) { hashCode = hashCode * 59 + Id.GetHashCode(); } if (Type != null) { hashCode = hashCode * 59 + Type.GetHashCode(); } if (Priority != null) { hashCode = hashCode * 59 + Priority.GetHashCode(); } if (Name != null) { hashCode = hashCode * 59 + Name.GetHashCode(); } if (Address != null) { hashCode = hashCode * 59 + Address.GetHashCode(); } if (Duration != null) { hashCode = hashCode * 59 + Duration.GetHashCode(); } if (PreparationTime != null) { hashCode = hashCode * 59 + PreparationTime.GetHashCode(); } if (TimeWindows != null) { hashCode = hashCode * 59 + TimeWindows.GetHashCode(); } if (Size != null) { hashCode = hashCode * 59 + Size.GetHashCode(); } if (RequiredSkills != null) { hashCode = hashCode * 59 + RequiredSkills.GetHashCode(); } if (AllowedVehicles != null) { hashCode = hashCode * 59 + AllowedVehicles.GetHashCode(); } if (DisallowedVehicles != null) { hashCode = hashCode * 59 + DisallowedVehicles.GetHashCode(); } if (MaxTimeInVehicle != null) { hashCode = hashCode * 59 + MaxTimeInVehicle.GetHashCode(); } return(hashCode); } }
/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { int hashCode = 41; if (Id != null) { hashCode = hashCode * 59 + Id.GetHashCode(); } if (Name != null) { hashCode = hashCode * 59 + Name.GetHashCode(); } if (Priority != null) { hashCode = hashCode * 59 + Priority.GetHashCode(); } if (Pickup != null) { hashCode = hashCode * 59 + Pickup.GetHashCode(); } if (Delivery != null) { hashCode = hashCode * 59 + Delivery.GetHashCode(); } if (Size != null) { hashCode = hashCode * 59 + Size.GetHashCode(); } if (RequiredSkills != null) { hashCode = hashCode * 59 + RequiredSkills.GetHashCode(); } if (AllowedVehicles != null) { hashCode = hashCode * 59 + AllowedVehicles.GetHashCode(); } if (DisallowedVehicles != null) { hashCode = hashCode * 59 + DisallowedVehicles.GetHashCode(); } if (MaxTimeInVehicle != null) { hashCode = hashCode * 59 + MaxTimeInVehicle.GetHashCode(); } return(hashCode); } }