示例#1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (SessionId != 0)
            {
                hash ^= SessionId.GetHashCode();
            }
            if (EncryptionKey.Length != 0)
            {
                hash ^= EncryptionKey.GetHashCode();
            }
            if (UniqueId != 0)
            {
                hash ^= UniqueId.GetHashCode();
            }
            if (Endpoint.Length != 0)
            {
                hash ^= Endpoint.GetHashCode();
            }
            return(hash);
        }
 /// <summary>
 /// Get a hash code for the CustomerProvidedKeyInfo.
 /// </summary>
 /// <returns>Hash code for the CustomerProvidedKeyInfo.</returns>
 public override int GetHashCode()
 => EncryptionKey.GetHashCode()
 ^ EncryptionKeyHash.GetHashCode()
 ^ EncryptionAlgorithm.GetHashCode()
 ;