public void Detach(Observer o) { foreach (Observer observer in Observers) { if (observer.Equals(o)) { Observers.Remove(observer); } } }
//Methods public void Attach(Observer o) { Observers.Add(o); }