/// <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 (Ean != null) { hashCode = hashCode * 59 + Ean.GetHashCode(); } if (Type != null) { hashCode = hashCode * 59 + Type.GetHashCode(); } if (Status != null) { hashCode = hashCode * 59 + Status.GetHashCode(); } if (Name != null) { hashCode = hashCode * 59 + Name.GetHashCode(); } if (Streams != null) { hashCode = hashCode * 59 + Streams.GetHashCode(); } if (LevelSubjects != null) { hashCode = hashCode * 59 + LevelSubjects.GetHashCode(); } if (Models != null) { hashCode = hashCode * 59 + Models.GetHashCode(); } if (TrialAccessUrl != null) { hashCode = hashCode * 59 + TrialAccessUrl.GetHashCode(); } if (DefaultAccessUrl != null) { hashCode = hashCode * 59 + DefaultAccessUrl.GetHashCode(); } if (ShortDescription != null) { hashCode = hashCode * 59 + ShortDescription.GetHashCode(); } if (LongDescription != null) { hashCode = hashCode * 59 + LongDescription.GetHashCode(); } if (Media != null) { hashCode = hashCode * 59 + Media.GetHashCode(); } if (RelatedProducts != null) { hashCode = hashCode * 59 + RelatedProducts.GetHashCode(); } if (BundledProducts != null) { hashCode = hashCode * 59 + BundledProducts.GetHashCode(); } return(hashCode); } }