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