/// <summary> /// Clears the <see cref="Dependency"/> property and deregisters /// the <see cref="OnDependencyChanged"/> event listener. /// </summary> protected void ResetDependency() { if (Dependency != null) { Dependency.DependencyChanged -= OnDependencyChanged; Dependency.Dispose(); } Dependency = null; }
public void Dispose() { _d.Dispose(); }