/// <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 (CreatePreviewEnabled != null) { hashCode = hashCode * 59 + CreatePreviewEnabled.GetHashCode(); } if (UpdatePreviewEnabled != null) { hashCode = hashCode * 59 + UpdatePreviewEnabled.GetHashCode(); } if (QueueSize != null) { hashCode = hashCode * 59 + QueueSize.GetHashCode(); } if (FolderPreviewRenditionRegex != null) { hashCode = hashCode * 59 + FolderPreviewRenditionRegex.GetHashCode(); } return(hashCode); } }
/// <summary> /// Returns true if ComDayCqDamCoreImplUiPreviewFolderPreviewUpdaterImplProperties instances are equal /// </summary> /// <param name="other">Instance of ComDayCqDamCoreImplUiPreviewFolderPreviewUpdaterImplProperties to be compared</param> /// <returns>Boolean</returns> public bool Equals(ComDayCqDamCoreImplUiPreviewFolderPreviewUpdaterImplProperties other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( CreatePreviewEnabled == other.CreatePreviewEnabled || CreatePreviewEnabled != null && CreatePreviewEnabled.Equals(other.CreatePreviewEnabled) ) && ( UpdatePreviewEnabled == other.UpdatePreviewEnabled || UpdatePreviewEnabled != null && UpdatePreviewEnabled.Equals(other.UpdatePreviewEnabled) ) && ( QueueSize == other.QueueSize || QueueSize != null && QueueSize.Equals(other.QueueSize) ) && ( FolderPreviewRenditionRegex == other.FolderPreviewRenditionRegex || FolderPreviewRenditionRegex != null && FolderPreviewRenditionRegex.Equals(other.FolderPreviewRenditionRegex) )); }