/// <summary>
 /// Returns a hash code for the current object.
 /// Uses a combination of the public properties to generate a unique hash code.
 /// </summary>
 /// <returns>A hash code for the current object.</returns>
 public override int GetHashCode()
 {
     unchecked
     {
         int result = table.GetHashCode();
         result = (result * 397) ^ base.GetHashCode();
         return(result);
     }
 }
Example #2
0
 /// <summary>
 /// Returns a hash code for the current object.
 /// Uses a combination of the public properties to generate a unique hash code.
 /// </summary>
 /// <returns>A hash code for the current object.</returns>
 public override int GetHashCode()
 {
     unchecked
     {
         int result = bucketType.GetHashCode();
         result = (result * 397) ^ bucket.GetHashCode();
         result = (result * 397) ^ (key != null ? key.GetHashCode() : 0);
         result = (result * 397) ^ base.GetHashCode();
         return(result);
     }
 }