/// <summary> /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. /// </summary> /// <param name="disposing">Disposes of the stream reader if set to true.</param> /// <remarks>You should use this method when finished with an instance of <see cref="BulkFileReader"/>.</remarks> protected virtual void Dispose(bool disposing) { if (disposing) { if (_bulkStreamReader != null) { _bulkStreamReader.Dispose(); _bulkStreamReader = null; } } }