Apache.NMS.ActiveMQ.Commands.BaseCommand.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 BaseCommand)
            {
                BaseCommand thatCommand = (BaseCommand) that;
                return this.GetDataStructureType() == thatCommand.GetDataStructureType()
                    && this.CommandId == thatCommand.CommandId;
            }
            return false;
        }