Exemple #1
0
 public void Add(AbstractObserver observer)
 {
     if (observer == null)
     {
         throw new ArgumentNullException("observer");
     }
     this.observers.Add(observer);
 }
 public void Add(AbstractObserver observer)
 {
     if (observer == null)
     {
         throw new ArgumentNullException("observer");
     }
     this.observers.Add(observer);
 }
Exemple #3
0
 public void Remove(AbstractObserver observer)
 {
     if (observer == null)
     {
         throw new ArgumentNullException("observer");
     }
     if (this.observers.Contains(observer))
     {
         this.observers.Remove(observer);
     }
 }
 public void Remove(AbstractObserver observer)
 {
     if (observer == null)
     {
         throw new ArgumentNullException("observer");
     }
     if (this.observers.Contains(observer))
     {
         this.observers.Remove(observer);
     }
 }