Esempio n. 1
0
 /// <summary>
 /// Release unmanaged and optionally managed resources.
 /// </summary>
 /// <param name="disposing">Called from Dispose method.</param>
 protected override void Dispose(bool disposing)
 {
     // If called from explicit call to Dispose
     if (disposing)
     {
         if (_child != null)
         {
             _child.Dispose();
             _child = null;
         }
     }
 }
 /// <summary>
 /// Clean up any resources.
 /// </summary>
 public virtual void Dispose()
 {
     // Dispose of the associated element hierarchy
     _root?.Dispose();
 }