示例#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(AcousticBeamFundamentalParameter obj)
        {
            bool ivarsEqual = true;

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

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

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

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

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

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

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

            return(ivarsEqual);
        }
        /// <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(AcousticBeamFundamentalParameter obj)
        {
            bool ivarsEqual = true;

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

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

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

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

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

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

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

            return ivarsEqual;
        }