예제 #1
0
 public void Dispose()
 {
     if (parent != null)
     {
         parent.observerList.Remove(unsubscribeTarget);
         unsubscribeTarget = null;
         parent            = null;
     }
 }
예제 #2
0
 public Subscription(FuncSubject <T, R> parent, IFuncObserver <T, R> unsubscribeTarget)
 {
     this.parent            = parent;
     this.unsubscribeTarget = unsubscribeTarget;
 }