コード例 #1
0
 public void Dispose()
 {
     if (parent != null)
     {
         parent.observerList.Remove(unsubscribeTarget);
         unsubscribeTarget = null;
         parent            = null;
     }
 }
コード例 #2
0
 public Subscription(ActionSubject <T> parent, IObserver <T> unsubscribeTarget)
 {
     this.parent            = parent;
     this.unsubscribeTarget = unsubscribeTarget;
 }