Exemplo n.º 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(ModulationType obj)
        {
            bool ivarsEqual = true;

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

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

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

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

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

            return(ivarsEqual);
        }
Exemplo n.º 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(ModulationType obj)
        {
            bool ivarsEqual = true;

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

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

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

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

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

            return ivarsEqual;
        }