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