Exemplo n.º 1
0
        public override int GetHashCode()
        {
            int hashCode = 0;

            if (KeyDigest != null)
            {
                hashCode ^= KeyDigest.GetHashCode(); // TODO has different hash as in Java!
            }
            if (ContentBloomFilter != null)
            {
                hashCode ^= ContentBloomFilter.GetHashCode();
            }
            if (VersionBloomFilter != null)
            {
                hashCode ^= VersionBloomFilter.GetHashCode();
            }
            if (DataMap != null)
            {
                hashCode ^= DataMap.GetHashCode();
            }
            return(hashCode);
        }
Exemplo n.º 2
0
 public override int GetHashCode()
 {
     return(KeyDigest.GetHashCode() ^ Size ^ ContentDigest.GetHashCode());
 }