Ejemplo n.º 1
0
 /// <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;
 }
Ejemplo n.º 2
0
 public void Dispose()
 {
     _d.Dispose();
 }