예제 #1
0
 public void Detach(Observer o)
 {
     foreach (Observer observer in Observers)
     {
         if (observer.Equals(o))
         {
             Observers.Remove(observer);
         }
     }
 }
예제 #2
0
 //Methods
 public void Attach(Observer o)
 {
     Observers.Add(o);
 }