예제 #1
0
 public Unsubscriber(List <MyObserver <T> > observers, MyObserver <T> observer)
 {
     this.m_listObeservers = observers;
     this.m_Observer       = observer;
 }
예제 #2
0
 //Add Observer
 public Unsubscriber <T> Subscribe(MyObserver <T> _Observer)
 {
     m_listObservers.Add(_Observer);
     return(new Unsubscriber <T>(m_listObservers, _Observer));
 }