/// <summary> /// Serves as the hash function for this type. /// This method is suitable for use in hashing algorithms /// and data structures like a hash table. /// </summary> /// <returns> /// A hash code for this <see cref="Token"/>. /// </returns> public override int GetHashCode() { int h = m_hashCode; if (h == 0) { unchecked { h = 29 * (m_value.GetHashCode() + (29 * m_type.GetHashCode())); } m_hashCode = h; } return(h); }
public override int GetHashCode() { return(type.GetHashCode() ^ value.ToUpper().GetHashCode()); }