public override int GetHashCode() { int hash = 1; if (CrcCode != 0) { hash ^= CrcCode.GetHashCode(); } if (Length != 0) { hash ^= Length.GetHashCode(); } if (SessionID != 0L) { hash ^= SessionID.GetHashCode(); } if (Type != 0) { hash ^= Type.GetHashCode(); } if (Priority != 0) { hash ^= Priority.GetHashCode(); } return(hash); }
/// <summary> /// Serves as a hash function for a particular type. /// </summary> /// <returns> /// A hash code for the current <see cref="T:System.Object"/>. /// </returns> public override int GetHashCode() { unchecked { return((ID.GetHashCode() * 397) ^ SessionID.GetHashCode()); } }
public override int GetHashCode() { int hash = GetType().GetHashCode(); hash = (hash * 397) ^ SessionID.GetHashCode(); hash = (hash * 397) ^ BoardID.GetHashCode(); return(hash); }
public override int GetHashCode() { int hash = 1; if (SessionID.Length != 0) { hash ^= SessionID.GetHashCode(); } if (Token.Length != 0) { hash ^= Token.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 10007; int secondPrime = 20011; int aux = !string.IsNullOrEmpty(Username) ? Username.GetHashCode() : 0; hash = hash * secondPrime + aux; aux = !string.IsNullOrEmpty(SessionID)?SessionID.GetHashCode() : 0; hash = hash * secondPrime + aux; return(0); }
public int GetSessionHashCode() { int h1 = UserName != null?UserName.GetHashCode() : 0; int h2 = Address != null?Address.GetHashCode() : 0; int h3 = SessionID.GetHashCode(); int hash = 17; hash = hash * 31 + h1; hash = hash * 31 + h2; hash = hash * 31 + h3; return(hash); }
/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { int hashCode = 41; if (SessionID != null) { hashCode = hashCode * 59 + SessionID.GetHashCode(); } if (ControlState != null) { hashCode = hashCode * 59 + ControlState.GetHashCode(); } return(hashCode); } }
public override int GetHashCode() { int hash = 1; if (opts_ != null) { hash ^= Opts.GetHashCode(); } if (Result != 0) { hash ^= Result.GetHashCode(); } if (SessionID != 0UL) { hash ^= SessionID.GetHashCode(); } hash ^= gsInfos_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { return(SessionID.GetHashCode()); }
public override int GetHashCode() { return(SessionID.GetHashCode() ^ BPM.GetHashCode() ^ TimeStamp.GetHashCode()); }