Apache.NMS.ActiveMQ.Commands.ActiveMQMessage.Equals C# (CSharp) Method

Equals() public method

public Equals ( object that ) : bool
that object
return bool
        public override bool Equals(object that)
        {
            if(that is ActiveMQMessage)
            {
                return Equals((ActiveMQMessage) that);
            }
            return false;
        }

Same methods

ActiveMQMessage::Equals ( ActiveMQMessage that ) : bool

Usage Example

 public void TestShallowCopy()
 {
     ActiveMQMessage msg1 = new ActiveMQMessage();
     msg1.NMSMessageId = nmsMessageID;
     ActiveMQMessage msg2 = (ActiveMQMessage) msg1.Clone();
     Assert.IsTrue(msg1 != msg2 && msg1.Equals(msg2));
 }
All Usage Examples Of Apache.NMS.ActiveMQ.Commands.ActiveMQMessage::Equals