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