Beispiel #1
0
        public int CompareTo(object obj)
        {
            SetACLResponse peer = (SetACLResponse)obj;

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

            ret = Stat.CompareTo(peer.Stat);
            if (ret != 0)
            {
                return(ret);
            }
            return(ret);
        }
Beispiel #2
0
        public override bool Equals(object obj)
        {
            SetACLResponse peer = (SetACLResponse)obj;

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

            ret = Stat.Equals(peer.Stat);
            if (!ret)
            {
                return(ret);
            }
            return(ret);
        }