/**
* if the object passed in is equivalent, return true
*
* @param obj the object to compare
* @return true if this instance and obj are equivalent
*/
public override bool Equals(Object obj)
{
bool result = this == obj;
if (!result && obj != null && obj is ActiveMQDestination)
{
ActiveMQDestination other = (ActiveMQDestination)obj;
result = this.GetDestinationType() == other.GetDestinationType() &&
this.physicalName.Equals(other.physicalName);
}
return(result);
}