/// <summary> /// Gets a hash code for the keyword. /// </summary> /// <returns>A hash code.</returns> public override int GetHashCode() { return((int)(_sym.GetHashCode() + 0x9e3779b9)); }
/// <summary> /// Construct a keyword based on a symbol. /// </summary> /// <param name="sym">A symbol giving namespace/name.</param> private Keyword(Symbol sym) { _sym = sym; _hash = (int)(_sym.GetHashCode() + 0x9e3779b9); }