public override bool Equals(object obj)
        {
            SetMaxChildrenRequest peer = (SetMaxChildrenRequest)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 = (Max == peer.Max);
            if (!ret)
            {
                return(ret);
            }
            return(ret);
        }
        public int CompareTo(object obj)
        {
            SetMaxChildrenRequest peer = (SetMaxChildrenRequest)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 = (Max == peer.Max)? 0 :((Max < peer.Max)?-1:1);
            if (ret != 0)
            {
                return(ret);
            }
            return(ret);
        }