Created
November 8, 2023 20:01
-
-
Save ahmetkucukoglu/52ba3247974078d466a758c1c22b36be to your computer and use it in GitHub Desktop.
Demo - CsvProductsExporterAdapter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var products = new List<Product> | |
{ | |
new() | |
{ | |
Title = "MacBook Pro 14 inch", | |
Description = "It's now even more capable, thanks to the new M3 chip." | |
}, | |
new() | |
{ | |
Title = "MacBook Pro 16 inch", | |
Description = "It's now even more capable, thanks to the new M3 chip." | |
} | |
}; | |
var csvExporter = new CsvProductsExporterAdapter(new CsvHelper(';')); | |
csvExporter.Export(products); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment