public int hasheq() { if (_hasheq == 0) { _hasheq = Util.hashCombine(Murmur3.HashString(_name), Util.hasheq(_ns)); } return(_hasheq); }
/// <summary> /// Get the hash code for the current object. /// </summary> /// <returns>The hash code.</returns> /// <remarks>Result is cached.</remarks> public override int GetHashCode() { if (_hash == -1) { int hash = 0; for (ISeq s = seq(); s != null; s = s.next()) { hash = Util.hashCombine(hash, Util.hash(s.first())); } _hash = hash; } return(_hash); }
/// <summary> /// Compute the hash code for the symbol. /// </summary> /// <returns>The hash code.</returns> private int ComputeHashCode() { return(Util.hashCombine(Util.hasheq(_name), Util.hasheq(_ns))); }
/// <summary> /// Get the hash code. /// </summary> /// <returns>The hash code.</returns> public override int GetHashCode() { return(Util.hashCombine(_name.GetHashCode(), Util.hash(_ns))); }
/// <summary> /// Compute the hash code for the symbol. /// </summary> /// <returns>The hash code.</returns> private int ComputeHashCode() { return(Util.hashCombine(_name.GetHashCode(), Util.hash(_ns))); }