Пример #1
0
        public override bool Equals(object obj)
        {
            ProtoSlaveRequest other = obj as ProtoSlaveRequest;

            if (other == null)
            {
                return(false);
            }
            if (hasFunction != other.hasFunction || (hasFunction && !function_.Equals(other.function_)))
            {
                return(false);
            }
            if (hasOutput != other.hasOutput || (hasOutput && !output_.Equals(other.output_)))
            {
                return(false);
            }
            if (parameter_.Count != other.parameter_.Count)
            {
                return(false);
            }
            for (int ix = 0; ix < parameter_.Count; ix++)
            {
                if (!parameter_[ix].Equals(other.parameter_[ix]))
                {
                    return(false);
                }
            }
            return(true);
        }
Пример #2
0
        public override bool Equals(object obj)
        {
            Blob other = obj as Blob;

            if (other == null)
            {
                return(false);
            }
            if (hasRaw != other.hasRaw || (hasRaw && !raw_.Equals(other.raw_)))
            {
                return(false);
            }
            if (hasRawSize != other.hasRawSize || (hasRawSize && !rawSize_.Equals(other.rawSize_)))
            {
                return(false);
            }
            if (hasZlibData != other.hasZlibData || (hasZlibData && !zlibData_.Equals(other.zlibData_)))
            {
                return(false);
            }
            if (hasLzmaData != other.hasLzmaData || (hasLzmaData && !lzmaData_.Equals(other.lzmaData_)))
            {
                return(false);
            }
            if (hasOBSOLETEBzip2Data != other.hasOBSOLETEBzip2Data || (hasOBSOLETEBzip2Data && !oBSOLETEBzip2Data_.Equals(other.oBSOLETEBzip2Data_)))
            {
                return(false);
            }
            return(true);
        }
Пример #3
0
        public override bool Equals(object obj)
        {
            ProtoSlaveReply other = obj as ProtoSlaveReply;

            if (other == null)
            {
                return(false);
            }
            if (hasResult != other.hasResult || (hasResult && !result_.Equals(other.result_)))
            {
                return(false);
            }
            if (hasError != other.hasError || (hasError && !error_.Equals(other.error_)))
            {
                return(false);
            }
            return(true);
        }
Пример #4
0
        public override bool Equals(object obj)
        {
            BlobHeader other = obj as BlobHeader;

            if (other == null)
            {
                return(false);
            }
            if (hasType != other.hasType || (hasType && !type_.Equals(other.type_)))
            {
                return(false);
            }
            if (hasIndexdata != other.hasIndexdata || (hasIndexdata && !indexdata_.Equals(other.indexdata_)))
            {
                return(false);
            }
            if (hasDatasize != other.hasDatasize || (hasDatasize && !datasize_.Equals(other.datasize_)))
            {
                return(false);
            }
            return(true);
        }