Exemplo n.º 1
0
        public override int GetHashCode()
        {
            int mruleHashCode = 0;

            foreach (KeyValuePair <MorphologicalRule, int> kvp in m_mrulesUnapplied)
            {
                mruleHashCode ^= kvp.Key.GetHashCode() ^ kvp.Value.GetHashCode();
            }

            return(mruleHashCode ^ m_shape.GetHashCode() ^ m_rzFeatures.GetHashCode()
                   ^ (m_nonHead == null ? 0 : m_nonHead.GetHashCode()));
        }
Exemplo n.º 2
0
        public override int GetHashCode()
        {
            int mruleHashCode = 0;

            foreach (MorphologicalRule rule in m_mrules)
            {
                mruleHashCode ^= rule.GetHashCode();
            }

            return(m_shape.GetHashCode() ^ m_morphs.GetHashCode()
                   ^ mruleHashCode ^ m_rzFeatures.GetHashCode()
                   ^ m_stratum.GetHashCode() ^ m_root.GetHashCode()
                   ^ (m_nonHead == null ? 0 : m_nonHead.GetHashCode()));
        }