/// <summary> /// Calculates the hash code for the object. /// </summary> /// <returns>Hash code for the object.</returns> private int CalculateHashCode() { int h; h = ShardKey.QPHash(this.Protocol.GetHashCode(), this.DataSource.ToUpperInvariant().GetHashCode()); h = ShardKey.QPHash(h, this.Port.GetHashCode()); h = ShardKey.QPHash(h, this.Database.ToUpperInvariant().GetHashCode()); return(h); }
/// <summary> /// Calculates the hash code for the object. /// </summary> /// <returns>Hash code for the object.</returns> private int CalculateHashCode() { return(ShardKey.QPHash(this.Low.GetHashCode(), this.High.GetHashCode())); }