Exemple #1
0
        public bool Equals(PagingResult other)
        {
            if (Object.ReferenceEquals(other, null))
            {
                return(false);
            }
            if (Object.ReferenceEquals(other, this))
            {
                return(true);
            }


            if (!PagingParams.Equals(other.PagingParams))
            {
                return(false);
            }

            if (RecordCount != other.RecordCount)
            {
                return(false);
            }
            if (TotalRecordCount != other.TotalRecordCount)
            {
                return(false);
            }
            if (FirstRecordNum != other.FirstRecordNum)
            {
                return(false);
            }
            if (LastRecordNum != other.LastRecordNum)
            {
                return(false);
            }

            return(true);
        }