public int CompareTo(object ta) { if (ta is TransportAddress) { ///@todo it would be nice to do a comparison that is not string based: return this.ToString().CompareTo(ta.ToString()); } else { return -1; } } }