Browse Source

Обновить 'README.md'

ababin 1 month ago
parent
commit
61e1d56589
1 changed files with 2 additions and 8 deletions
  1. 2 8
      README.md

+ 2 - 8
README.md

@@ -137,15 +137,9 @@ namespace WpfApp3
                 new MusicalInstrument { Name = "Скрипка", Type = "Струнные", Price = 400 },
                 new MusicalInstrument { Name = "Труба", Type = "Медные", Price = 600 },
             };
-            CsvConfiguration configuration = new CsvConfiguration(CultureInfo.InvariantCulture)
-            {
-                Delimiter = ",",
-                HasHeaderRecord = true,
-                IgnoreBlankLines = true
-            };
-
+     
             using (var reader = new StreamReader("./data.csv"))
-            using (var csv = new CsvReader(reader, configuration))
+            using (var csv = new CsvReader(reader, CultureInfo.InvariantCulture))
             {
                 instruments = csv.GetRecords<MusicalInstrument>().ToList();
             }