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