public override int GetHashCode()
        {
            int num = 17;

            num = num * 23 + Name.GetHashCode();
            num = num * 23 + Digest.GetHashCode();
            return(num * 23 + IsImage.GetHashCode());
        }
Esempio n. 2
0
 /// <inheritdoc/>
 public override int GetHashCode()
 {
     unchecked
     {
         int result = Digest.GetHashCode();
         result = (result * 397) ^ Size.GetHashCode();
         result = (result * 397) ^ Name.GetHashCode();
         return(result);
     }
 }
Esempio n. 3
0
 /// <inheritdoc/>
 public override int GetHashCode()
 {
     unchecked
     {
         int result = (Digest != null ? Digest.GetHashCode() : 0);
         result = (result * 397) ^ ModifiedTime.GetHashCode();
         result = (result * 397) ^ Size.GetHashCode();
         result = (result * 397) ^ (FileName != null ? FileName.GetHashCode() : 0);
         return(result);
     }
 }
Esempio n. 4
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id.Length != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (Digest.Length != 0)
            {
                hash ^= Digest.GetHashCode();
            }
            if (Size != 0L)
            {
                hash ^= Size.GetHashCode();
            }
            hash ^= urls_.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Esempio n. 5
0
        /// <summary>
        /// Get the hash code for this object
        /// </summary>
        ///
        /// <returns>Hash code</returns>
        public override int GetHashCode()
        {
            int prime  = 31;
            int result = 1;

            result = prime * result + N;
            result = prime * result + BufferLenBits;
            result = prime * result + _bufferLenTrits;
            result = prime * result + CBits;
            result = prime * result + Db;
            result = prime * result + DF;
            result = prime * result + DF1;
            result = prime * result + DF2;
            result = prime * result + DF3;
            result = prime * result + Dg;
            result = prime * result + Dm0;
            result = prime * result + MaxM1;
            result = prime * result + DR;
            result = prime * result + DR1;
            result = prime * result + DR2;
            result = prime * result + DR3;
            result = prime * result + (FastFp ? 1231 : 1237);
            result = prime * result + Digest.GetHashCode();
            result = prime * result + RandomEngine.GetHashCode();
            result = prime * result + (HashSeed ? 1231 : 1237);
            result = prime * result + Length;
            result = prime * result + MessageMax;
            result = prime * result + MinMGFHashCalls;
            result = prime * result + MinIGFHashCalls;
            result = prime * result + OId.GetHashCode();
            result = prime * result + PkLen;
            result = prime * result + PolyType.GetHashCode();
            result = prime * result + Q;
            result = prime * result + (Sparse ? 1231 : 1237);

            return(result);
        }
Esempio n. 6
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);
        }
Esempio n. 7
0
 public override int GetHashCode() => Digest.GetHashCode();
Esempio n. 8
0
 public override int GetHashCode()
 {
     return(Digest.GetHashCode());
 }