Exemple #1
0
        /// <summary>
        /// Determines whether the specified <see cref="System.Object"/> is equal to this instance.
        /// </summary>
        /// <param name="obj">The <see cref="System.Object"/> to compare with this instance.</param>
        /// <returns>
        ///   <c>true</c> if the specified <see cref="System.Object"/> is equal to this instance; otherwise, <c>false</c>.
        /// </returns>
        public override bool Equals(object obj)
        {
            bool result = false;

            if (base.Equals(obj))
            {
                SocketRawDataMessage other = (SocketRawDataMessage)obj;
                result = other.mData == mData && other.mPacketOrderNumber == mPacketOrderNumber;
            }
            return(result);
        }
Exemple #2
0
        /// <summary>
        /// Determines whether the specified <see cref="System.Object"/> is equal to this instance.
        /// </summary>
        /// <param name="obj">The <see cref="System.Object"/> to compare with this instance.</param>
        /// <returns>
        ///   <c>true</c> if the specified <see cref="System.Object"/> is equal to this instance; otherwise, <c>false</c>.
        /// </returns>
        public override bool Equals(object obj)
        {
            bool result = false;

            if (base.Equals(obj))
            {
                SocketRawDataMessage other = (SocketRawDataMessage)obj;
                result = other.mSenderSocketId == mSenderSocketId && other.mTargetSocketId == mTargetSocketId && other.mSenderPort == mSenderPort && other.mTargetPort == mTargetPort;
            }
            return(result);
        }