コード例 #1
0
        public void OpenCalledTwice_NoExceptionThrown(CSVReaderWriterForAnnotation.Mode mode, string inputFilePath)
        {
            var readerWriter = new CsvReaderWriter();

            readerWriter.Open(inputFilePath, mode);
            readerWriter.Open(inputFilePath, mode);
            readerWriter.Close();
        }
コード例 #2
0
        public void Process(string inputFile)
        {
            var reader = new CsvReaderWriter();

            reader.Open(inputFile, CSVReaderWriterForAnnotation.Mode.Read);

            string column1, column2;

            while (reader.Read(out column1, out column2))
            {
                _mailShot.SendMailShot(column1, column2);
            }

            reader.Close();
        }