示例#1
0
        public override bool Equals(object obj)
        {
            CheckVersionTxn peer = (CheckVersionTxn)obj;

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

            ret = Path.Equals(peer.Path);
            if (!ret)
            {
                return(ret);
            }
            ret = (Version == peer.Version);
            if (!ret)
            {
                return(ret);
            }
            return(ret);
        }
示例#2
0
        public override bool Equals(object obj)
        {
            CheckVersionTxn objA = (CheckVersionTxn)obj;

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

            flag = this.Path.Equals(objA.Path);
            if (flag)
            {
                flag = this.Version == objA.Version;
                if (!flag)
                {
                    return(flag);
                }
            }
            return(flag);
        }
示例#3
0
        public override bool Equals(object obj)
        {
            CheckVersionTxn checkVersionTxn = (CheckVersionTxn)obj;

            if (checkVersionTxn == null)
            {
                return(false);
            }
            if (object.ReferenceEquals((object)checkVersionTxn, (object)this))
            {
                return(true);
            }
            bool flag1 = this.Path.Equals(checkVersionTxn.Path);

            if (!flag1)
            {
                return(flag1);
            }
            bool flag2 = this.Version == checkVersionTxn.Version;

            if (!flag2)
            {
                return(flag2);
            }
            return(flag2);
        }
示例#4
0
        public int CompareTo(object obj)
        {
            CheckVersionTxn txn = (CheckVersionTxn)obj;

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

            num = this.Path.CompareTo(txn.Path);
            if (num == 0)
            {
                num = (this.Version == txn.Version) ? 0 : ((this.Version < txn.Version) ? -1 : 1);
                if (num != 0)
                {
                    return(num);
                }
            }
            return(num);
        }
示例#5
0
        public int CompareTo(object obj)
        {
            CheckVersionTxn peer = (CheckVersionTxn)obj;

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

            ret = Path.CompareTo(peer.Path);
            if (ret != 0)
            {
                return(ret);
            }
            ret = (Version == peer.Version)? 0 :((Version < peer.Version)?-1:1);
            if (ret != 0)
            {
                return(ret);
            }
            return(ret);
        }
示例#6
0
        public int CompareTo(object obj)
        {
            CheckVersionTxn checkVersionTxn = (CheckVersionTxn)obj;

            if (checkVersionTxn == null)
            {
                throw new InvalidOperationException("Comparing different types of records.");
            }
            int num1 = this.Path.CompareTo(checkVersionTxn.Path);

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

            if (num2 != 0)
            {
                return(num2);
            }
            return(num2);
        }