示例#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;
 }
示例#2
0
 public void Dispose()
 {
     _d.Dispose();
 }