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