コード例 #1
0
        /// <summary>
        /// Compares for reference AND value equality.
        /// </summary>
        /// <param name="obj">The object to compare with this instance.</param>
        /// <returns>
        ///     <c>true</c> if both operands are equal; otherwise, <c>false</c>.
        /// </returns>
        public bool Equals(FalseTargetsAttribute obj)
        {
            bool ivarsEqual = true;

            if (obj.GetType() != this.GetType())
            {
                return(false);
            }

            if (this._recordType != obj._recordType)
            {
                ivarsEqual = false;
            }

            if (this._recordLength != obj._recordLength)
            {
                ivarsEqual = false;
            }

            if (this._padding != obj._padding)
            {
                ivarsEqual = false;
            }

            if (this._emitterNumber != obj._emitterNumber)
            {
                ivarsEqual = false;
            }

            if (this._beamNumber != obj._beamNumber)
            {
                ivarsEqual = false;
            }

            if (this._stateIndicator != obj._stateIndicator)
            {
                ivarsEqual = false;
            }

            if (this._padding2 != obj._padding2)
            {
                ivarsEqual = false;
            }

            if (this._falseTargetCount != obj._falseTargetCount)
            {
                ivarsEqual = false;
            }

            if (this._walkSpeed != obj._walkSpeed)
            {
                ivarsEqual = false;
            }

            if (this._walkAcceleration != obj._walkAcceleration)
            {
                ivarsEqual = false;
            }

            if (this._maximumWalkDistance != obj._maximumWalkDistance)
            {
                ivarsEqual = false;
            }

            if (this._keepTime != obj._keepTime)
            {
                ivarsEqual = false;
            }

            if (this._echoSpacing != obj._echoSpacing)
            {
                ivarsEqual = false;
            }

            if (this._padding3 != obj._padding3)
            {
                ivarsEqual = false;
            }

            return(ivarsEqual);
        }
コード例 #2
0
        /// <summary>
        /// Compares for reference AND value equality.
        /// </summary>
        /// <param name="obj">The object to compare with this instance.</param>
        /// <returns>
        /// 	<c>true</c> if both operands are equal; otherwise, <c>false</c>.
        /// </returns>
        public bool Equals(FalseTargetsAttribute obj)
        {
            bool ivarsEqual = true;

            if (obj.GetType() != this.GetType())
            {
                return false;
            }

            if (this._recordType != obj._recordType)
            {
                ivarsEqual = false;
            }

            if (this._recordLength != obj._recordLength)
            {
                ivarsEqual = false;
            }

            if (this._padding != obj._padding)
            {
                ivarsEqual = false;
            }

            if (this._emitterNumber != obj._emitterNumber)
            {
                ivarsEqual = false;
            }

            if (this._beamNumber != obj._beamNumber)
            {
                ivarsEqual = false;
            }

            if (this._stateIndicator != obj._stateIndicator)
            {
                ivarsEqual = false;
            }

            if (this._padding2 != obj._padding2)
            {
                ivarsEqual = false;
            }

            if (this._falseTargetCount != obj._falseTargetCount)
            {
                ivarsEqual = false;
            }

            if (this._walkSpeed != obj._walkSpeed)
            {
                ivarsEqual = false;
            }

            if (this._walkAcceleration != obj._walkAcceleration)
            {
                ivarsEqual = false;
            }

            if (this._maximumWalkDistance != obj._maximumWalkDistance)
            {
                ivarsEqual = false;
            }

            if (this._keepTime != obj._keepTime)
            {
                ivarsEqual = false;
            }

            if (this._echoSpacing != obj._echoSpacing)
            {
                ivarsEqual = false;
            }

            if (this._padding3 != obj._padding3)
            {
                ivarsEqual = false;
            }

            return ivarsEqual;
        }