예제 #1
0
 public void Dispose()
 {
     if (_parent != null)
     {
         _parent.RemoveSubscription(this);
         _parent = null;
     }
 }
예제 #2
0
 public Subscription(KeyWatcher parent, IObserver <char> observer)
 {
     _parent  = parent;
     Observer = observer;
 }