//implement idisposable public void Dispose() { if (_csvReader != null) { _csvReader.Dispose(); } if (_csvWriter != null) { _csvWriter.Dispose(); } }