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