Esempio n. 1
0
        public override bool Equals(object obj)
        {
            SyncRequest objA = (SyncRequest)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);
        }
Esempio n. 2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="obj"></param>
        /// <returns></returns>
        public override bool Equals(object obj)
        {
            SyncRequest peer = (SyncRequest)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);
        }