示例#1
0
        public void DettachObserver(AbstractObserver observer)
        {
            var toRemove = this.Observers.SingleOrDefault(o => o.Id == observer.Id);

            this.Observers.Remove(toRemove);
        }
示例#2
0
 public void AttachObserver(AbstractObserver observer)
 {
     this.Observers.Add(observer);
 }