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