Example #1
0
 /// <summary>
 /// Returns a hash code for this instance.
 /// </summary>
 /// <returns>
 /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
 /// </returns>
 public override int GetHashCode()
 {
     unchecked
     {
         int result = Maps.Where(x => x != null).Aggregate(0, (acc, val) => acc * 397 ^ val.GetHashCode());
         result = (result * 397) ^ Maps.Count;
         result = (result * 397) ^ (Reduce?.GetHashCode() ?? 0);
         result = (result * 397) ^ DictionaryHashCode(Fields);
         return(result);
     }
 }
Example #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         int result = (Map != null ? Map.GetHashCode() : 0);
         result = (result * 397) ^ (Reduce != null ? Reduce.GetHashCode() : 0);
         result = (result * 397) ^ (Stores != null ? Stores.GetHashCode() : 0);
         result = (result * 397) ^ (Indexes != null ? Indexes.GetHashCode() : 0);
         return(result);
     }
 }
Example #3
0
 /// <summary>
 /// Returns a hash code for this instance.
 /// </summary>
 /// <returns>
 /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
 /// </returns>
 public override int GetHashCode()
 {
     unchecked
     {
         int result = (Map != null ? Map.GetHashCode() : 0);
         result = (result * 397) ^ (Reduce != null ? Reduce.GetHashCode() : 0);
         result = (result * 397) ^ DictionaryHashCode(Stores);
         result = (result * 397) ^ DictionaryHashCode(Indexes);
         result = (result * 397) ^ DictionaryHashCode(Analyzers);
         result = (result * 397) ^ DictionaryHashCode(SortOptions);
         return(result);
     }
 }
Example #4
0
 /// <summary>
 /// Returns a hash code for this instance.
 /// </summary>
 /// <returns>
 /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
 /// </returns>
 public override int GetHashCode()
 {
     unchecked
     {
         int result = Maps.Where(x => x != null).Aggregate(0, (acc, val) => acc * 397 ^ val.GetHashCode());
         result = (result * 397) ^ Maps.Count;
         result = (result * 397) ^ (Reduce != null ? Reduce.GetHashCode() : 0);
         result = (result * 397) ^ DictionaryHashCode(Stores);
         result = (result * 397) ^ DictionaryHashCode(Indexes);
         result = (result * 397) ^ DictionaryHashCode(Analyzers);
         result = (result * 397) ^ DictionaryHashCode(SortOptions);
         return(result);
     }
 }