Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-jitbit authored Jun 6, 2024
1 parent c31a086 commit 39c53ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ myExport["Sales"] = 50000;
myExport["Date Opened"] = new DateTime(2005, 1, 1, 9, 30, 0);

///ASP.NET MVC action example
return File(myExport.ExportToBytes(), "text/csv", "results.csv");
return File(myExport.ExportAsMemoryStream(), "text/csv", "results.csv");
```

For generating CSV out of a typed `List<T>` of objects:
Expand Down Expand Up @@ -77,7 +77,7 @@ var myExport = new CsvExport(
);
```

Also, methods `ExportToFile` and `ExportToBytes` offer an optional encoding parameter.
Also, methods `ExportToFile` and `ExportAsMemoryStream` and `ExportToBytes` offer an optional encoding parameter.

### License

Expand Down

0 comments on commit 39c53ed

Please sign in to comment.