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

            CycleStepDataType value = encodeable as CycleStepDataType;

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

            if (!Utils.IsEqual(m_name, value.m_name))
            {
                return(false);
            }
            if (!Utils.IsEqual(m_duration, value.m_duration))
            {
                return(false);
            }

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

            clone.m_name     = (string)Utils.Clone(this.m_name);
            clone.m_duration = (double)Utils.Clone(this.m_duration);

            return(clone);
        }