Esempio n. 1
0
        public override int GetHashCode()
        {
            var hash = 23;

            hash = hash * 31 + _fileName.GetHashCode();
            hash = hash * 31 + FilePath.GetHashCode();
            hash = hash * 31 + OriginalSize.GetHashCode();
            hash = hash * 31 + CompressedSize.GetHashCode();
            Logger.Debug("hash code : " + hash);
            return(hash);
        }
Esempio n. 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id.Length != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (Digest.Length != 0)
            {
                hash ^= Digest.GetHashCode();
            }
            if (CompressedSize != 0L)
            {
                hash ^= CompressedSize.GetHashCode();
            }
            if (config_ != null)
            {
                hash ^= Config.GetHashCode();
            }
            hash ^= layers_.GetHashCode();
            hash ^= tags_.GetHashCode();
            if (createdAt_ != null)
            {
                hash ^= CreatedAt.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }