After creating the extension method of DataTableToExcel, let’s create that DataTable from a CSV file. If you open a csv file in Excel, you’ll get all the information in 1 column. Now we create a usable xlsx file from out …
Tag: datatable
With extension methods you can easily add new methods to existing types without creating new derived type or modifing the original type. Anytime you write a new method that has an input parameter with the keyword: this, is going to …