Skip to content

Commit

Permalink
yeld
Browse files Browse the repository at this point in the history
  • Loading branch information
kolei committed Apr 29, 2024
1 parent ae79807 commit 683d6e1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion articles/lab_wpf_data_csv.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@
reader,
CultureInfo.InvariantCulture))
{
catList = csv.GetRecords<Foo>();
// CsvHelper использует отложенное чтение через
// yeld, поэтому сразу преобразуем в список
catList = csv.GetRecords<Cat>().ToList();
}
}
}
Expand Down

0 comments on commit 683d6e1

Please sign in to comment.