protected virtual void Dispose(bool disposing) { if (!disposedValue) { if (disposing) { _stream?.Dispose(); _fileWriter?.Dispose(); _fileReader?.Dispose(); } _stream = null; _fileWriter = null; _fileReader = null; disposedValue = true; } }