Apache.NMS.Commands.Destination.Equals C# (CSharp) Method

Equals() public method

if the object passed in is equivalent, return true
public Equals ( Object obj ) : bool
obj Object the object to compare
return bool
        public override bool Equals(Object obj)
        {
            bool result = this == obj;
            if(!result && obj != null && obj is Destination)
            {
                Destination other = (Destination) obj;
                result = this.GetDestinationType() == other.GetDestinationType()
                    && this.physicalName.Equals(other.physicalName);
            }
            return result;
        }