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

            XVType value = encodeable as XVType;

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

            if (!Utils.IsEqual(m_x, value.m_x))
            {
                return(false);
            }
            if (!Utils.IsEqual(m_value, value.m_value))
            {
                return(false);
            }

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

            clone.m_x     = (double)Utils.Clone(this.m_x);
            clone.m_value = (float)Utils.Clone(this.m_value);

            return(clone);
        }