Beispiel #1
0
        /// <summary cref="IEncodeable.IsEqual(IEncodeable)" />
        public virtual bool IsEqual(IEncodeable encodeable)
        {
            if (Object.ReferenceEquals(this, encodeable))
            {
                return(true);
            }

            BoilerDataType value = encodeable as BoilerDataType;

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

            if (!Utils.IsEqual(m_temperature, value.m_temperature))
            {
                return(false);
            }
            if (!Utils.IsEqual(m_pressure, value.m_pressure))
            {
                return(false);
            }
            if (!Utils.IsEqual(m_heaterState, value.m_heaterState))
            {
                return(false);
            }

            return(true);
        }
Beispiel #2
0
        /// <summary cref="Object.MemberwiseClone" />
        public new object MemberwiseClone()
        {
            BoilerDataType clone = (BoilerDataType)base.MemberwiseClone();

            clone.m_temperature = (BoilerTemperatureType)Utils.Clone(this.m_temperature);
            clone.m_pressure    = (int)Utils.Clone(this.m_pressure);
            clone.m_heaterState = (BoilerHeaterStateType)Utils.Clone(this.m_heaterState);

            return(clone);
        }