public bool Equals(QueueItem other) { return(NamespacedName.Equals(other.NamespacedName) && EqualityComparer <IDispatchTarget> .Default.Equals(DispatchTarget, other.DispatchTarget)); }