Exemplo n.º 1
0
        public override bool Equals(object obj)
        {
            QuorumPacket objA = (QuorumPacket)obj;

            if (objA == null)
            {
                return(false);
            }
            if (object.ReferenceEquals(objA, this))
            {
                return(true);
            }
            bool flag = false;

            flag = this.Type == objA.Type;
            if (flag)
            {
                flag = this.Zxid == objA.Zxid;
                if (!flag)
                {
                    return(flag);
                }
                flag = this.Data.Equals(objA.Data);
                if (!flag)
                {
                    return(flag);
                }
                flag = this.Authinfo.Equals(objA.Authinfo);
                if (!flag)
                {
                    return(flag);
                }
            }
            return(flag);
        }
Exemplo n.º 2
0
        public override bool Equals(object obj)
        {
            QuorumPacket quorumPacket = (QuorumPacket)obj;

            if (quorumPacket == null)
            {
                return(false);
            }
            if (object.ReferenceEquals((object)quorumPacket, (object)this))
            {
                return(true);
            }
            bool flag1 = this.Type == quorumPacket.Type;

            if (!flag1)
            {
                return(flag1);
            }
            bool flag2 = this.Zxid == quorumPacket.Zxid;

            if (!flag2)
            {
                return(flag2);
            }
            bool flag3 = this.Data.Equals((object)quorumPacket.Data);

            if (!flag3)
            {
                return(flag3);
            }
            bool flag4 = this.Authinfo.Equals((object)quorumPacket.Authinfo);

            if (!flag4)
            {
                return(flag4);
            }
            return(flag4);
        }
Exemplo n.º 3
0
        public override bool Equals(object obj)
        {
            QuorumPacket peer = (QuorumPacket)obj;

            if (peer == null)
            {
                return(false);
            }
            if (Object.ReferenceEquals(peer, this))
            {
                return(true);
            }
            bool ret = false;

            ret = (Type == peer.Type);
            if (!ret)
            {
                return(ret);
            }
            ret = (Zxid == peer.Zxid);
            if (!ret)
            {
                return(ret);
            }
            ret = Data.Equals(peer.Data);
            if (!ret)
            {
                return(ret);
            }
            ret = Authinfo.Equals(peer.Authinfo);
            if (!ret)
            {
                return(ret);
            }
            return(ret);
        }