public void DettachObserver(AbstractObserver observer) { var toRemove = this.Observers.SingleOrDefault(o => o.Id == observer.Id); this.Observers.Remove(toRemove); }
public void AttachObserver(AbstractObserver observer) { this.Observers.Add(observer); }