/// <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 (SolrHttpUrl != null) { hashCode = hashCode * 59 + SolrHttpUrl.GetHashCode(); } if (SolrZkHost != null) { hashCode = hashCode * 59 + SolrZkHost.GetHashCode(); } if (SolrCollection != null) { hashCode = hashCode * 59 + SolrCollection.GetHashCode(); } if (SolrSocketTimeout != null) { hashCode = hashCode * 59 + SolrSocketTimeout.GetHashCode(); } if (SolrConnectionTimeout != null) { hashCode = hashCode * 59 + SolrConnectionTimeout.GetHashCode(); } if (SolrShardsNo != null) { hashCode = hashCode * 59 + SolrShardsNo.GetHashCode(); } if (SolrReplicationFactor != null) { hashCode = hashCode * 59 + SolrReplicationFactor.GetHashCode(); } if (SolrConfDir != null) { hashCode = hashCode * 59 + SolrConfDir.GetHashCode(); } return(hashCode); } }