/// <summary> /// Gets the hash code. /// </summary> /// <returns>The hash code.</returns> public override int GetHashCode() { // see Effective Java by Joshua Bloch int hash = 17; hash = 37 * hash + BsonType.GetHashCode(); hash = 37 * hash + _value.GetHashCode(); return(hash); }
/// <summary> /// Gets the hash code. /// </summary> /// <returns>The hash code.</returns> public override int GetHashCode() { // see Effective Java by Joshua Bloch int hash = 17; hash = 37 * hash + BsonType.GetHashCode(); hash = 37 * hash + _millisecondsSinceEpoch.GetHashCode(); return(hash); }
/// <summary> /// Gets the hash code. /// </summary> /// <returns>The hash code.</returns> public override int GetHashCode() { // see Effective Java by Joshua Bloch int hash = 17; hash = 37 * BsonType.GetHashCode(); foreach (BsonElement element in _elements) { hash = 37 * hash + element.GetHashCode(); } return(hash); }
/// <summary> /// Gets the hash code. /// </summary> /// <returns>The hash code.</returns> public override int GetHashCode() { // see Effective Java by Joshua Bloch int hash = 17; hash = 37 * hash + BsonType.GetHashCode(); foreach (var value in _values) { hash = 37 * hash + value.GetHashCode(); } return(hash); }
/// <summary> /// Gets the hash code. /// </summary> /// <returns>The hash code.</returns> public override int GetHashCode() { // see Effective Java by Joshua Bloch // note: guidRepresentation is not considered when computing the hash code int hash = 17; hash = 37 * hash + BsonType.GetHashCode(); foreach (byte b in _bytes) { hash = 37 * hash + b; } hash = 37 * hash + _subType.GetHashCode(); return(hash); }
/// <summary> /// Gets the hash code. /// </summary> /// <returns>The hash code.</returns> public override int GetHashCode() { return(BsonType.GetHashCode()); }