/// <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 (DsLoglevel != null) { hashCode = hashCode * 59 + DsLoglevel.GetHashCode(); } if (DsFactoryEnabled != null) { hashCode = hashCode * 59 + DsFactoryEnabled.GetHashCode(); } if (DsDelayedKeepInstances != null) { hashCode = hashCode * 59 + DsDelayedKeepInstances.GetHashCode(); } if (DsLockTimeoutMilliseconds != null) { hashCode = hashCode * 59 + DsLockTimeoutMilliseconds.GetHashCode(); } if (DsStopTimeoutMilliseconds != null) { hashCode = hashCode * 59 + DsStopTimeoutMilliseconds.GetHashCode(); } if (DsGlobalExtender != null) { hashCode = hashCode * 59 + DsGlobalExtender.GetHashCode(); } return(hashCode); } }