Example #1
0
        public override int GetHashCode()
        {
            int h = match.GetHashCode();

            h ^= ((h << 8) | (Number.URShift(h, 25)));             // reversible
            h ^= System.Convert.ToInt32(Boost) ^ end;
            return(h);
        }
Example #2
0
        public override int GetHashCode()
        {
            int h = include.GetHashCode();

            h  = (h << 1) | (Number.URShift(h, 31));            // rotate left
            h ^= exclude.GetHashCode();
            h  = (h << 1) | (Number.URShift(h, 31));            // rotate left
            h ^= System.Convert.ToInt32(Boost);
            return(h);
        }