Beispiel #1
0
        public int CompareTo(object obj)
        {
            GetSASLRequest getSaslRequest = (GetSASLRequest)obj;

            if (getSaslRequest == null)
            {
                throw new InvalidOperationException("Comparing different types of records.");
            }
            int num = this.Token.CompareTo(getSaslRequest.Token);

            if (num != 0)
            {
                return(num);
            }
            return(num);
        }
Beispiel #2
0
        public int CompareTo(object obj)
        {
            GetSASLRequest peer = (GetSASLRequest)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);
        }
Beispiel #3
0
        public override bool Equals(object obj)
        {
            GetSASLRequest getSaslRequest = (GetSASLRequest)obj;

            if (getSaslRequest == null)
            {
                return(false);
            }
            if (object.ReferenceEquals((object)getSaslRequest, (object)this))
            {
                return(true);
            }
            bool flag = this.Token.Equals((object)getSaslRequest.Token);

            if (!flag)
            {
                return(flag);
            }
            return(flag);
        }
Beispiel #4
0
        public override bool Equals(object obj)
        {
            GetSASLRequest peer = (GetSASLRequest)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);
        }
Beispiel #5
0
        public override bool Equals(object obj)
        {
            GetSASLRequest objA = (GetSASLRequest)obj;

            if (objA == null)
            {
                return(false);
            }
            if (object.ReferenceEquals(objA, this))
            {
                return(true);
            }
            bool flag = false;

            flag = this.Token.Equals(objA.Token);
            if (!flag)
            {
                return(flag);
            }
            return(flag);
        }