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

            ParameterResultDataType value = encodeable as ParameterResultDataType;

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

            if (!Utils.IsEqual(m_nodePath, value.m_nodePath))
            {
                return(false);
            }
            if (!Utils.IsEqual(m_statusCode, value.m_statusCode))
            {
                return(false);
            }
            if (!Utils.IsEqual(m_diagnostics, value.m_diagnostics))
            {
                return(false);
            }

            return(true);
        }
コード例 #2
0
        /// <summary cref="Object.MemberwiseClone" />
        public new object MemberwiseClone()
        {
            ParameterResultDataType clone = (ParameterResultDataType)base.MemberwiseClone();

            clone.m_nodePath    = (QualifiedNameCollection)Utils.Clone(this.m_nodePath);
            clone.m_statusCode  = (StatusCode)Utils.Clone(this.m_statusCode);
            clone.m_diagnostics = (DiagnosticInfo)Utils.Clone(this.m_diagnostics);

            return(clone);
        }