/// <summary>Compute a hash code for hashing us</summary> /// <returns> the hash code /// </returns> public override int GetHashCode() { return(BitConverter.ToInt32(BitConverter.GetBytes(GetBoost()), 0) + BitConverter.ToInt32(BitConverter.GetBytes(tieBreakerMultiplier), 0) + disjuncts.GetHashCode()); }
/// <summary>Returns a hash code value for this object.</summary> public override int GetHashCode() { return(BitConverter.ToInt32(BitConverter.GetBytes(GetBoost()), 0) ^ clauses.GetHashCode() + GetMinimumNumberShouldMatch()); }
/// <summary>Returns a hash code value for this object.</summary> public override int GetHashCode() { int boostInt = BitConverter.ToInt32(BitConverter.GetBytes(GetBoost()), 0); return(boostInt ^ clauses.GetHashCode()); }
/// <summary>Returns a hash code value for this object.</summary> public override int GetHashCode() { return(BitConverter.ToInt32(BitConverter.GetBytes(GetBoost()), 0) ^ slop ^ terms.GetHashCode() ^ positions.GetHashCode()); }