public virtual void Dispose() { System.Diagnostics.Trace.WriteLine("Disposing editor host."); if (disposed) { return; } disposed = true; if (designerView == null) { System.Diagnostics.Trace.WriteLine("DesignerView is already null when disposing; was it created correctly?"); } else { designerView.Dispose(); } GC.SuppressFinalize(this); }
public void Dispose() { view.Destroy(); view.Dispose(); }