Пример #1
0
        /// <summary cref="IEncodeable.IsEqual(IEncodeable)" />
        public override bool IsEqual(IEncodeable encodeable)
        {
            if (Object.ReferenceEquals(this, encodeable))
            {
                return(true);
            }

            CalibrationDataType value = encodeable as CalibrationDataType;

            if (value == null)
            {
                return(false);
            }

            if (!Utils.IsEqual(m_offset, value.m_offset))
            {
                return(false);
            }
            if (!Utils.IsEqual(m_period, value.m_period))
            {
                return(false);
            }

            return(true);
        }
Пример #2
0
        /// <summary cref="ICloneable.Clone" />
        public override object Clone()
        {
            CalibrationDataType clone = (CalibrationDataType)base.Clone();

            clone.m_offset = (double)Utils.Clone(this.m_offset);
            clone.m_period = (double)Utils.Clone(this.m_period);

            return(clone);
        }
Пример #3
0
        /// <summary cref="ICloneable.Clone" />
        public virtual object Clone()
        {
            CalibrationDataType clone = (CalibrationDataType)this.MemberwiseClone();

            clone.m_offset = (double)Utils.Clone(this.m_offset);
            clone.m_period = (double)Utils.Clone(this.m_period);

            return(clone);
        }