Example #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(BeamData obj)
        {
            bool ivarsEqual = true;

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

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

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

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

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

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

            return(ivarsEqual);
        }
Example #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(BeamData obj)
        {
            bool ivarsEqual = true;

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

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

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

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

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

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

            return ivarsEqual;
        }