Пример #1
0
        public int CompareTo(object obj)
        {
            SetSASLRequest peer = (SetSASLRequest)obj;

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

            ret = Token.CompareTo(peer.Token);
            if (ret != 0)
            {
                return(ret);
            }
            return(ret);
        }
Пример #2
0
        public override bool Equals(object obj)
        {
            SetSASLRequest peer = (SetSASLRequest)obj;

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

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