Esempio n. 1
0
        public int CompareTo(object obj)
        {
            StatPersistedV1 statPersistedV1 = (StatPersistedV1)obj;

            if (statPersistedV1 == null)
            {
                throw new InvalidOperationException("Comparing different types of records.");
            }
            int num1 = this.Czxid == statPersistedV1.Czxid ? 0 : (this.Czxid < statPersistedV1.Czxid ? -1 : 1);

            if (num1 != 0)
            {
                return(num1);
            }
            int num2 = this.Mzxid == statPersistedV1.Mzxid ? 0 : (this.Mzxid < statPersistedV1.Mzxid ? -1 : 1);

            if (num2 != 0)
            {
                return(num2);
            }
            int num3 = this.Ctime == statPersistedV1.Ctime ? 0 : (this.Ctime < statPersistedV1.Ctime ? -1 : 1);

            if (num3 != 0)
            {
                return(num3);
            }
            int num4 = this.Mtime == statPersistedV1.Mtime ? 0 : (this.Mtime < statPersistedV1.Mtime ? -1 : 1);

            if (num4 != 0)
            {
                return(num4);
            }
            int num5 = this.Version == statPersistedV1.Version ? 0 : (this.Version < statPersistedV1.Version ? -1 : 1);

            if (num5 != 0)
            {
                return(num5);
            }
            int num6 = this.Cversion == statPersistedV1.Cversion ? 0 : (this.Cversion < statPersistedV1.Cversion ? -1 : 1);

            if (num6 != 0)
            {
                return(num6);
            }
            int num7 = this.Aversion == statPersistedV1.Aversion ? 0 : (this.Aversion < statPersistedV1.Aversion ? -1 : 1);

            if (num7 != 0)
            {
                return(num7);
            }
            int num8 = this.EphemeralOwner == statPersistedV1.EphemeralOwner ? 0 : (this.EphemeralOwner < statPersistedV1.EphemeralOwner ? -1 : 1);

            if (num8 != 0)
            {
                return(num8);
            }
            return(num8);
        }
Esempio n. 2
0
        public override bool Equals(object obj)
        {
            StatPersistedV1 peer = (StatPersistedV1)obj;

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

            ret = (Czxid == peer.Czxid);
            if (!ret)
            {
                return(ret);
            }
            ret = (Mzxid == peer.Mzxid);
            if (!ret)
            {
                return(ret);
            }
            ret = (Ctime == peer.Ctime);
            if (!ret)
            {
                return(ret);
            }
            ret = (Mtime == peer.Mtime);
            if (!ret)
            {
                return(ret);
            }
            ret = (Version == peer.Version);
            if (!ret)
            {
                return(ret);
            }
            ret = (Cversion == peer.Cversion);
            if (!ret)
            {
                return(ret);
            }
            ret = (Aversion == peer.Aversion);
            if (!ret)
            {
                return(ret);
            }
            ret = (EphemeralOwner == peer.EphemeralOwner);
            if (!ret)
            {
                return(ret);
            }
            return(ret);
        }
Esempio n. 3
0
        public override bool Equals(object obj)
        {
            StatPersistedV1 objA = (StatPersistedV1)obj;

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

            flag = this.Czxid == objA.Czxid;
            if (flag)
            {
                flag = this.Mzxid == objA.Mzxid;
                if (!flag)
                {
                    return(flag);
                }
                flag = this.Ctime == objA.Ctime;
                if (!flag)
                {
                    return(flag);
                }
                flag = this.Mtime == objA.Mtime;
                if (!flag)
                {
                    return(flag);
                }
                flag = this.Version == objA.Version;
                if (!flag)
                {
                    return(flag);
                }
                flag = this.Cversion == objA.Cversion;
                if (!flag)
                {
                    return(flag);
                }
                flag = this.Aversion == objA.Aversion;
                if (!flag)
                {
                    return(flag);
                }
                flag = this.EphemeralOwner == objA.EphemeralOwner;
                if (!flag)
                {
                    return(flag);
                }
            }
            return(flag);
        }
Esempio n. 4
0
        public int CompareTo(object obj)
        {
            StatPersistedV1 peer = (StatPersistedV1)obj;

            if (peer == null)
            {
                throw new InvalidOperationException("Comparing different types of records.");
            }
            int ret = 0;

            ret = (Czxid == peer.Czxid)? 0 :((Czxid < peer.Czxid)?-1:1);
            if (ret != 0)
            {
                return(ret);
            }
            ret = (Mzxid == peer.Mzxid)? 0 :((Mzxid < peer.Mzxid)?-1:1);
            if (ret != 0)
            {
                return(ret);
            }
            ret = (Ctime == peer.Ctime)? 0 :((Ctime < peer.Ctime)?-1:1);
            if (ret != 0)
            {
                return(ret);
            }
            ret = (Mtime == peer.Mtime)? 0 :((Mtime < peer.Mtime)?-1:1);
            if (ret != 0)
            {
                return(ret);
            }
            ret = (Version == peer.Version)? 0 :((Version < peer.Version)?-1:1);
            if (ret != 0)
            {
                return(ret);
            }
            ret = (Cversion == peer.Cversion)? 0 :((Cversion < peer.Cversion)?-1:1);
            if (ret != 0)
            {
                return(ret);
            }
            ret = (Aversion == peer.Aversion)? 0 :((Aversion < peer.Aversion)?-1:1);
            if (ret != 0)
            {
                return(ret);
            }
            ret = (EphemeralOwner == peer.EphemeralOwner)? 0 :((EphemeralOwner < peer.EphemeralOwner)?-1:1);
            if (ret != 0)
            {
                return(ret);
            }
            return(ret);
        }
Esempio n. 5
0
        public int CompareTo(object obj)
        {
            StatPersistedV1 dv = (StatPersistedV1)obj;

            if (dv == null)
            {
                throw new InvalidOperationException("Comparing different types of records.");
            }
            int num = 0;

            num = (this.Czxid == dv.Czxid) ? 0 : ((this.Czxid < dv.Czxid) ? -1 : 1);
            if (num == 0)
            {
                num = (this.Mzxid == dv.Mzxid) ? 0 : ((this.Mzxid < dv.Mzxid) ? -1 : 1);
                if (num != 0)
                {
                    return(num);
                }
                num = (this.Ctime == dv.Ctime) ? 0 : ((this.Ctime < dv.Ctime) ? -1 : 1);
                if (num != 0)
                {
                    return(num);
                }
                num = (this.Mtime == dv.Mtime) ? 0 : ((this.Mtime < dv.Mtime) ? -1 : 1);
                if (num != 0)
                {
                    return(num);
                }
                num = (this.Version == dv.Version) ? 0 : ((this.Version < dv.Version) ? -1 : 1);
                if (num != 0)
                {
                    return(num);
                }
                num = (this.Cversion == dv.Cversion) ? 0 : ((this.Cversion < dv.Cversion) ? -1 : 1);
                if (num != 0)
                {
                    return(num);
                }
                num = (this.Aversion == dv.Aversion) ? 0 : ((this.Aversion < dv.Aversion) ? -1 : 1);
                if (num != 0)
                {
                    return(num);
                }
                num = (this.EphemeralOwner == dv.EphemeralOwner) ? 0 : ((this.EphemeralOwner < dv.EphemeralOwner) ? -1 : 1);
                if (num != 0)
                {
                    return(num);
                }
            }
            return(num);
        }
Esempio n. 6
0
        public override bool Equals(object obj)
        {
            StatPersistedV1 statPersistedV1 = (StatPersistedV1)obj;

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

            if (!flag1)
            {
                return(flag1);
            }
            bool flag2 = this.Mzxid == statPersistedV1.Mzxid;

            if (!flag2)
            {
                return(flag2);
            }
            bool flag3 = this.Ctime == statPersistedV1.Ctime;

            if (!flag3)
            {
                return(flag3);
            }
            bool flag4 = this.Mtime == statPersistedV1.Mtime;

            if (!flag4)
            {
                return(flag4);
            }
            bool flag5 = this.Version == statPersistedV1.Version;

            if (!flag5)
            {
                return(flag5);
            }
            bool flag6 = this.Cversion == statPersistedV1.Cversion;

            if (!flag6)
            {
                return(flag6);
            }
            bool flag7 = this.Aversion == statPersistedV1.Aversion;

            if (!flag7)
            {
                return(flag7);
            }
            bool flag8 = this.EphemeralOwner == statPersistedV1.EphemeralOwner;

            if (!flag8)
            {
                return(flag8);
            }
            return(flag8);
        }