GetHashCode() публичный Метод

Get the hash code.
public GetHashCode ( ) : int
Результат int
Пример #1
0
 /// <summary>
 /// Gets a hash code for the keyword.
 /// </summary>
 /// <returns>A hash code.</returns>
 public override int GetHashCode()
 {
     return((int)(_sym.GetHashCode() + 0x9e3779b9));
 }
Пример #2
0
 /// <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);
 }
Пример #3
0
 /// <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);
 }