/// <summary> /// if the object passed in is equivalent, return true /// </summary> /// <param name="obj">the object to compare</param> /// <returns>true if this instance and obj are equivalent</returns> 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); }