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