예제 #1
0
        public List <BirthdayPerson> ReadFromBirthDayCsvFile()
        {
            using (var reader = new StreamReader(configurationWrapper.GetBirthdayCsvFilePath()))
                using (var csvReader = new CsvReader(reader, new CultureInfo("EN")))
                {
                    csvReader.Configuration.HasHeaderRecord = true;

                    return(csvReader.GetRecords <BirthdayPerson>().ToList());
                }
        }