Пример #1
0
        /// <summary>
        /// Closes this reader/writer.
        /// </summary>
        public void Close()
        {
            if (_CSVReader != null)
            {
                _CSVReader.Dispose();
            }

            if (_CSVWriter != null)
            {
                _CSVWriter.Dispose();
            }
        }
Пример #2
0
 /// <summary>
 /// Closes any streams that are currently opened by this class
 /// </summary>
 public void Close()
 {
     // idea, perhaps this should just call Dispose() instead of duplicating effort?
     _writer?.Dispose();
     _reader?.Dispose();
 }