/// <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 (ThreadPoolSize != null) { hashCode = hashCode * 59 + ThreadPoolSize.GetHashCode(); } if (DelayTime != null) { hashCode = hashCode * 59 + DelayTime.GetHashCode(); } if (WorkerSleepTime != null) { hashCode = hashCode * 59 + WorkerSleepTime.GetHashCode(); } return(hashCode); } }
/// <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 (Disabled != null) { hashCode = hashCode * 59 + Disabled.GetHashCode(); } if (Debug != null) { hashCode = hashCode * 59 + Debug.GetHashCode(); } if (LocalIndexDir != null) { hashCode = hashCode * 59 + LocalIndexDir.GetHashCode(); } if (EnableOpenIndexAsync != null) { hashCode = hashCode * 59 + EnableOpenIndexAsync.GetHashCode(); } if (ThreadPoolSize != null) { hashCode = hashCode * 59 + ThreadPoolSize.GetHashCode(); } if (PrefetchIndexFiles != null) { hashCode = hashCode * 59 + PrefetchIndexFiles.GetHashCode(); } if (ExtractedTextCacheSizeInMB != null) { hashCode = hashCode * 59 + ExtractedTextCacheSizeInMB.GetHashCode(); } if (ExtractedTextCacheExpiryInSecs != null) { hashCode = hashCode * 59 + ExtractedTextCacheExpiryInSecs.GetHashCode(); } if (AlwaysUsePreExtractedCache != null) { hashCode = hashCode * 59 + AlwaysUsePreExtractedCache.GetHashCode(); } if (BooleanClauseLimit != null) { hashCode = hashCode * 59 + BooleanClauseLimit.GetHashCode(); } if (EnableHybridIndexing != null) { hashCode = hashCode * 59 + EnableHybridIndexing.GetHashCode(); } if (HybridQueueSize != null) { hashCode = hashCode * 59 + HybridQueueSize.GetHashCode(); } if (DisableStoredIndexDefinition != null) { hashCode = hashCode * 59 + DisableStoredIndexDefinition.GetHashCode(); } if (DeletedBlobsCollectionEnabled != null) { hashCode = hashCode * 59 + DeletedBlobsCollectionEnabled.GetHashCode(); } if (PropIndexCleanerIntervalInSecs != null) { hashCode = hashCode * 59 + PropIndexCleanerIntervalInSecs.GetHashCode(); } if (EnableSingleBlobIndexFiles != null) { hashCode = hashCode * 59 + EnableSingleBlobIndexFiles.GetHashCode(); } return(hashCode); } }