Skip to content

Commit 49e768f

Browse files
authored
Change CSV export method in README
Updated the example for exporting data to CSV format.
1 parent 837dad0 commit 49e768f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ myExport["Region"] = "Canberra \"in\" Australia";
4646
myExport["Sales"] = 50000;
4747
myExport["Date Opened"] = new DateTime(2005, 1, 1, 9, 30, 0);
4848

49-
///ASP.NET MVC action example
50-
return File(myExport.ExportAsMemoryStream(), "text/csv", "results.csv");
49+
//save as file
50+
myExport.ExportToFile("results.csv");
5151
```
5252

5353
For generating CSV out of a typed `List<T>` of objects:

0 commit comments

Comments
 (0)