/// <summary>Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.</summary> /// <param name="disposing">Whether this method is called from Dispose.</param> private void _dispose(bool disposing) { if (!_disposed && disposing) { _file?.Dispose(); _disposed = true; } }