Ejemplo n.º 1
0
        public override int GetHashCode()
        {
            int hash = GetType().GetHashCode();

            if (hasRaw)
            {
                hash ^= raw_.GetHashCode();
            }
            if (hasRawSize)
            {
                hash ^= rawSize_.GetHashCode();
            }
            if (hasZlibData)
            {
                hash ^= zlibData_.GetHashCode();
            }
            if (hasLzmaData)
            {
                hash ^= lzmaData_.GetHashCode();
            }
            if (hasOBSOLETEBzip2Data)
            {
                hash ^= oBSOLETEBzip2Data_.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = GetType().GetHashCode();

            if (hasResult)
            {
                hash ^= result_.GetHashCode();
            }
            if (hasError)
            {
                hash ^= error_.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 3
0
        public override int GetHashCode()
        {
            int hash = GetType().GetHashCode();

            if (hasFunction)
            {
                hash ^= function_.GetHashCode();
            }
            if (hasOutput)
            {
                hash ^= output_.GetHashCode();
            }
            foreach (pb::ByteString i in parameter_)
            {
                hash ^= i.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 4
0
        public override int GetHashCode()
        {
            int hash = GetType().GetHashCode();

            if (hasType)
            {
                hash ^= type_.GetHashCode();
            }
            if (hasIndexdata)
            {
                hash ^= indexdata_.GetHashCode();
            }
            if (hasDatasize)
            {
                hash ^= datasize_.GetHashCode();
            }
            return(hash);
        }