protected virtual void Dispose(bool disposing) { if (!_disposedValue) { if (disposing) { // TODO: dispose managed state (managed objects) IsReady = false; _svg.Dispose(); } // TODO: free unmanaged resources (unmanaged objects) and override finalizer // TODO: set large fields to null _disposedValue = true; } }
public void Dispose() { svg?.Dispose(); svg = null; }
public void Dispose() { _svg.Dispose(); GC.SuppressFinalize(this); }
public override void Dispose() { svg?.Dispose(); svg = null; }