/// <summary> /// Returns true if ComDayCqReplicationImplContentDurboDurboImportConfigurationProvProperties instances are equal /// </summary> /// <param name="other">Instance of ComDayCqReplicationImplContentDurboDurboImportConfigurationProvProperties to be compared</param> /// <returns>Boolean</returns> public bool Equals(ComDayCqReplicationImplContentDurboDurboImportConfigurationProvProperties other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( PreserveHierarchyNodes == other.PreserveHierarchyNodes || PreserveHierarchyNodes != null && PreserveHierarchyNodes.Equals(other.PreserveHierarchyNodes) ) && ( IgnoreVersioning == other.IgnoreVersioning || IgnoreVersioning != null && IgnoreVersioning.Equals(other.IgnoreVersioning) ) && ( ImportAcl == other.ImportAcl || ImportAcl != null && ImportAcl.Equals(other.ImportAcl) ) && ( SaveThreshold == other.SaveThreshold || SaveThreshold != null && SaveThreshold.Equals(other.SaveThreshold) ) && ( PreserveUserPaths == other.PreserveUserPaths || PreserveUserPaths != null && PreserveUserPaths.Equals(other.PreserveUserPaths) ) && ( PreserveUuid == other.PreserveUuid || PreserveUuid != null && PreserveUuid.Equals(other.PreserveUuid) ) && ( PreserveUuidNodetypes == other.PreserveUuidNodetypes || PreserveUuidNodetypes != null && PreserveUuidNodetypes.Equals(other.PreserveUuidNodetypes) ) && ( PreserveUuidSubtrees == other.PreserveUuidSubtrees || PreserveUuidSubtrees != null && PreserveUuidSubtrees.Equals(other.PreserveUuidSubtrees) ) && ( AutoCommit == other.AutoCommit || AutoCommit != null && AutoCommit.Equals(other.AutoCommit) )); }
/// <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 (PreserveHierarchyNodes != null) { hashCode = hashCode * 59 + PreserveHierarchyNodes.GetHashCode(); } if (IgnoreVersioning != null) { hashCode = hashCode * 59 + IgnoreVersioning.GetHashCode(); } if (ImportAcl != null) { hashCode = hashCode * 59 + ImportAcl.GetHashCode(); } if (SaveThreshold != null) { hashCode = hashCode * 59 + SaveThreshold.GetHashCode(); } if (PreserveUserPaths != null) { hashCode = hashCode * 59 + PreserveUserPaths.GetHashCode(); } if (PreserveUuid != null) { hashCode = hashCode * 59 + PreserveUuid.GetHashCode(); } if (PreserveUuidNodetypes != null) { hashCode = hashCode * 59 + PreserveUuidNodetypes.GetHashCode(); } if (PreserveUuidSubtrees != null) { hashCode = hashCode * 59 + PreserveUuidSubtrees.GetHashCode(); } if (AutoCommit != null) { hashCode = hashCode * 59 + AutoCommit.GetHashCode(); } return(hashCode); } }