/// <summary cref="IEncodeable.IsEqual(IEncodeable)" /> public virtual bool IsEqual(IEncodeable encodeable) { if (Object.ReferenceEquals(this, encodeable)) { return(true); } ControllerDataType value = encodeable as ControllerDataType; if (value == null) { return(false); } if (!Utils.IsEqual(m_setpoint, value.m_setpoint)) { return(false); } if (!Utils.IsEqual(m_controllerOut, value.m_controllerOut)) { return(false); } if (!Utils.IsEqual(m_processVariable, value.m_processVariable)) { return(false); } return(true); }
/// <summary cref="ICloneable.Clone" /> public virtual object Clone() { ControllerDataType clone = (ControllerDataType)this.MemberwiseClone(); clone.m_setpoint = (double)Utils.Clone(this.m_setpoint); clone.m_controllerOut = (double)Utils.Clone(this.m_controllerOut); clone.m_processVariable = (double)Utils.Clone(this.m_processVariable); return(clone); }