/**
         * Compares for reference equality and value equality.
         */
        public bool equals(GridAxisRecordRepresentation1 rhs)
        {
            bool ivarsEqual = true;

            if(rhs.GetType() != this.GetType())
                return false;

            ivarsEqual = base.Equals(rhs);

            if( ! (_fieldScale == rhs._fieldScale)) ivarsEqual = false;
            if( ! (_fieldOffset == rhs._fieldOffset)) ivarsEqual = false;
            if( ! (_numberOfValues == rhs._numberOfValues)) ivarsEqual = false;

            if( ! (_dataValues.Count == rhs._dataValues.Count)) ivarsEqual = false;
            if(ivarsEqual)
            {
                for(int idx = 0; idx < _dataValues.Count; idx++)
                {
                    if( ! ( _dataValues[idx].Equals(rhs._dataValues[idx]))) ivarsEqual = false;
                }
            }

            return ivarsEqual;
        }