Ejemplo n.º 1
0
        public override int GetHashCode()
        {
            // stolen from GPNode.  It's a decent algorithm.
            var hash = GetType().GetHashCode();

            return(Trees.Aggregate(hash, (current, t) => (current << 1 | BitShifter.URShift(current, 31)) ^ t.TreeHashCode()));
        }