Example #1
0
        /// <summary>Returns a hash code value for this object. </summary>
        public override int GetHashCode()
        {
            int valSrcHash = 0;

            for (int i = 0; i < valSrcQueries.Length; i++)
            {
                //TODO simplify with Arrays.deepHashcode() once moving to Java 1.5
                valSrcHash += valSrcQueries[i].GetHashCode();
            }
            return((GetType().GetHashCode() + subQuery.GetHashCode() + valSrcHash) ^
                   BitConverter.ToInt32(BitConverter.GetBytes(GetBoost()), 0) ^ (strict ? 1234 : 4321));
        }