Example #1
0
        public override bool Equals(object obj)
        {
            GetChildrenRequest peer = (GetChildrenRequest)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 = (Watch == peer.Watch);
            if (!ret)
            {
                return(ret);
            }
            return(ret);
        }
        public override bool Equals(object obj)
        {
            GetChildrenRequest getChildrenRequest = (GetChildrenRequest)obj;

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

            if (!flag1)
            {
                return(flag1);
            }
            bool flag2 = this.Watch == getChildrenRequest.Watch;

            if (!flag2)
            {
                return(flag2);
            }
            return(flag2);
        }
Example #3
0
        public override bool Equals(object obj)
        {
            GetChildrenRequest objA = (GetChildrenRequest)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.Watch == objA.Watch;
                if (!flag)
                {
                    return(flag);
                }
            }
            return(flag);
        }
Example #4
0
        public int CompareTo(object obj)
        {
            GetChildrenRequest request = (GetChildrenRequest)obj;

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

            num = this.Path.CompareTo(request.Path);
            if (num == 0)
            {
                num = (this.Watch == request.Watch) ? 0 : (this.Watch ? 1 : -1);
                if (num != 0)
                {
                    return(num);
                }
            }
            return(num);
        }
Example #5
0
        public int CompareTo(object obj)
        {
            GetChildrenRequest peer = (GetChildrenRequest)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 = (Watch == peer.Watch)? 0 : (Watch?1:-1);
            if (ret != 0)
            {
                return(ret);
            }
            return(ret);
        }
        public int CompareTo(object obj)
        {
            GetChildrenRequest getChildrenRequest = (GetChildrenRequest)obj;

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

            if (num1 != 0)
            {
                return(num1);
            }
            int num2 = this.Watch == getChildrenRequest.Watch ? 0 : (this.Watch ? 1 : -1);

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