Esempio n. 1
0
        public override bool Equals(object obj)
        {
            GetDataResponse objA = (GetDataResponse)obj;

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

            flag = this.Data.Equals(objA.Data);
            if (flag)
            {
                flag = this.Stat.Equals(objA.Stat);
                if (!flag)
                {
                    return(flag);
                }
            }
            return(flag);
        }
Esempio n. 2
0
        public override bool Equals(object obj)
        {
            GetDataResponse peer = (GetDataResponse)obj;

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

            ret = Data.Equals(peer.Data);
            if (!ret)
            {
                return(ret);
            }
            ret = Stat.Equals(peer.Stat);
            if (!ret)
            {
                return(ret);
            }
            return(ret);
        }
Esempio n. 3
0
        public int CompareTo(object obj)
        {
            GetDataResponse response = (GetDataResponse)obj;

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

            num = this.Data.CompareTo(response.Data);
            if (num == 0)
            {
                num = this.Stat.CompareTo(response.Stat);
                if (num != 0)
                {
                    return(num);
                }
            }
            return(num);
        }
Esempio n. 4
0
        public int CompareTo(object obj)
        {
            GetDataResponse peer = (GetDataResponse)obj;

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

            ret = Data.CompareTo(peer.Data);
            if (ret != 0)
            {
                return(ret);
            }
            ret = Stat.CompareTo(peer.Stat);
            if (ret != 0)
            {
                return(ret);
            }
            return(ret);
        }
Esempio n. 5
0
        public int CompareTo(object obj)
        {
            GetDataResponse getDataResponse = (GetDataResponse)obj;

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

            if (num1 != 0)
            {
                return(num1);
            }
            int num2 = this.Stat.CompareTo((object)getDataResponse.Stat);

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