/// <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); } }