示例#1
0
 public int CompareTo(object obj)
 {
     DeleteTxn peer = (DeleteTxn)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;
     return ret;
 }
示例#2
0
 public override bool Equals(object obj)
 {
     DeleteTxn peer = (DeleteTxn)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;
     return ret;
 }
示例#3
0
        public int CompareTo(object obj)
        {
            DeleteTxn deleteTxn = (DeleteTxn)obj;

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

            if (num != 0)
            {
                return(num);
            }
            return(num);
        }
示例#4
0
        public override bool Equals(object obj)
        {
            DeleteTxn deleteTxn = (DeleteTxn)obj;

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

            if (!flag)
            {
                return(flag);
            }
            return(flag);
        }
示例#5
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="obj"></param>
        /// <returns></returns>
        public override bool Equals(object obj)
        {
            DeleteTxn peer = (DeleteTxn)obj;

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

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

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

            flag = this.Path.Equals(objA.Path);
            if (!flag)
            {
                return(flag);
            }
            return(flag);
        }