Beispiel #1
0
 /// <summary>
 /// 移除
 /// </summary>
 /// <param name="observer"></param>
 public void Detach(Observer observer)
 {
     observers.Remove(observer);
 }
Beispiel #2
0
 /// <summary>
 /// 增加
 /// </summary>
 /// <param name="observer"></param>
 public void Attach(Observer observer)
 {
     observers.Add(observer);
 }