示例#1
0
        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;
            }
        }
示例#2
0
 public void Dispose()
 {
     svg?.Dispose();
     svg = null;
 }
 public void Dispose()
 {
     _svg.Dispose();
     GC.SuppressFinalize(this);
 }
示例#4
0
 public override void Dispose()
 {
     svg?.Dispose();
     svg = null;
 }