Exemple #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hash = 17;
         hash = hash * 23 + ServerList.GetCombinedHashcode();
         hash = hash * 23 + VBucketMap.GetCombinedHashcode();
         hash = hash * 23 + NumReplicas.GetHashCode();
         hash = hash * 23 + HashAlgorithm.GetHashCode();
         return(hash);
     }
 }
        public override int GetHashCode()
        {
            int hash = 1;

            if (HashAlgorithm != 0)
            {
                hash ^= HashAlgorithm.GetHashCode();
            }
            if (SigAlgorithm != 0)
            {
                hash ^= SigAlgorithm.GetHashCode();
            }
            if (Signature.Length != 0)
            {
                hash ^= Signature.GetHashCode();
            }
            return(hash);
        }
Exemple #3
0
 /// <inheritdoc cref="object.GetHashCode()"/>
 public override int GetHashCode() =>
 unchecked ((17 * 31 + Hash.GetHashCode()) * 31 + HashAlgorithm.GetHashCode());