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

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

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

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

            if (this._acousticID != obj._acousticID)
            {
                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(AcousticEmitterSystem obj)
        {
            bool ivarsEqual = true;

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

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

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

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

            return ivarsEqual;
        }