コード例 #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(DirectedEnergyPrecisionAimpoint 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._targetSpotLocation.Equals(obj._targetSpotLocation))
            {
                ivarsEqual = false;
            }

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

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

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

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

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

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

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

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

            if (this._BeamSpotCrossSectionOrientAngle != obj._BeamSpotCrossSectionOrientAngle)
            {
                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(DirectedEnergyPrecisionAimpoint 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._targetSpotLocation.Equals(obj._targetSpotLocation))
            {
                ivarsEqual = false;
            }

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

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

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

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

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

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

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

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

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

            return(ivarsEqual);
        }