Exemplo n.º 1
0
        /// <summary cref="IEncodeable.IsEqual(IEncodeable)" />
        public override bool IsEqual(IEncodeable encodeable)
        {
            if (Object.ReferenceEquals(this, encodeable))
            {
                return(true);
            }

            FetchResultDataDataType value = encodeable as FetchResultDataDataType;

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

            if (!base.IsEqual(encodeable))
            {
                return(false);
            }
            if (!Utils.IsEqual(m_sequenceNumber, value.m_sequenceNumber))
            {
                return(false);
            }
            if (!Utils.IsEqual(m_endOfResults, value.m_endOfResults))
            {
                return(false);
            }
            if (!Utils.IsEqual(m_parameterDefs, value.m_parameterDefs))
            {
                return(false);
            }

            return(true);
        }
Exemplo n.º 2
0
        /// <summary cref="Object.MemberwiseClone" />
        public new object MemberwiseClone()
        {
            FetchResultDataDataType clone = (FetchResultDataDataType)base.MemberwiseClone();

            clone.m_sequenceNumber = (int)Utils.Clone(this.m_sequenceNumber);
            clone.m_endOfResults   = (bool)Utils.Clone(this.m_endOfResults);
            clone.m_parameterDefs  = (ParameterResultDataTypeCollection)Utils.Clone(this.m_parameterDefs);

            return(clone);
        }