//implement idisposable public void Dispose() { if (_csvReader != null) { _csvReader.Dispose(); } if (_csvWriter != null) { _csvWriter.Dispose(); } }
public void Dispose() { if (contactsReader != null) { contactsReader.Dispose(); contactsReader = null; } if (csvWriter != null) { csvWriter.Dispose(); csvWriter = null; } GC.SuppressFinalize(this); }