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

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

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

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

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

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

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

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

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

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

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

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

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

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

            return ivarsEqual;
        }