Example #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return((PeerId.GetHashCode() * 397) ^ (int)UpdateAction);
     }
 }
 public override int GetHashCode()
 {
     unchecked
     {
         return((_peerId.GetHashCode() * 397) ^ _messageId.GetHashCode());
     }
 }
 public override int GetHashCode()
 {
     unchecked
     {
         int result = (BusUri != null
                           ? BusUri.GetHashCode()
                           : 0);
         result = (result * 397) ^ PeerId.GetHashCode();
         result = (result * 397) ^ SubscriptionId.GetHashCode();
         return(result);
     }
 }
Example #4
0
    public override int GetHashCode()
    {
        int hash = 1;

        if (PeerId != 0)
        {
            hash ^= PeerId.GetHashCode();
        }
        if (WebPort != 0)
        {
            hash ^= WebPort.GetHashCode();
        }
        if (rpcEndpoint_ != null)
        {
            hash ^= RpcEndpoint.GetHashCode();
        }
        hash ^= metaNodes_.GetHashCode();
        if (_unknownFields != null)
        {
            hash ^= _unknownFields.GetHashCode();
        }
        return(hash);
    }
Example #5
0
 public override int GetHashCode()
 {
     return(InfoHash.GetHashCode() ^ PeerId.GetHashCode() ^ ProtocolString.GetHashCode());
 }
Example #6
0
 public override int GetHashCode()
 {
     return(PeerId.GetHashCode());
 }
Example #7
0
 /// <summary>
 ///     Returns the hash code for this HandshakeMessage instance.
 /// </summary>
 /// <returns>An integer representing the hash code of this instace of the HandshakeMessage class.</returns>
 public override int GetHashCode()
 {
     return(Protocol.GetHashCode() ^ BitConverter.ToString(Reserved).GetHashCode() ^
            BitConverter.ToString(InfoHash).GetHashCode() ^ PeerId.GetHashCode());
 }