예제 #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="obj"></param>
        /// <returns></returns>
        public override bool Equals(object obj)
        {
            var other = obj as HierarchyMessage;

            if (other == null)
            {
                return(false);
            }
            if (!messageID.Equals(other.messageID))
            {
                return(false);
            }
            if (!baseID.Equals(other.baseID))
            {
                return(false);
            }
            if (!primitiveType.Equals(other.primitiveType))
            {
                return(false);
            }
            if (!type.Equals(other.type))
            {
                return(false);
            }
            if (!manifestModule.Equals(other.manifestModule))
            {
                return(false);
            }
            return(true);
        }
예제 #2
0
파일: ExecMsg.cs 프로젝트: Khrove/LowPay
        /// <summary>
        /// Determines if two messages are the equal.  They are considered
        /// equal if they have the same Severity, MessageID, and Message text.
        /// </summary>
        public override bool Equals(object obj)
        {
            if ((obj == null) || !(obj is ExecMsg))
            {
                return(false);
            }
            ExecMsg msg = (ExecMsg)obj;

            return(Severity.Equals(msg.Severity) && MessageID.Equals(msg.MessageID) && Message.Equals(msg.Message));
        }