In this tutorial I'll show you how to read a CSV file into your C# .NET app using the excellent CsvHelper library. I'll go through 3 methods to read your CSV file: dynamic objects, Property Attributes and ClassMap.
The example here is a .NET Core app, but CsvHelper is a .NET Standard library, so it works seamlessly across .NET Core, .NET Framework and Xamarin.
☕️ Don’t forget, developers run on coffee! 😀
https://www.buymeacoffee.com/Robertsd...
📬 Stay in touch! Join our mailing list
https://robertsdevtalk.com
🐦 Follow us on Twitter:
/ robertsdevtalk
If you need to create a CSV file (export), we have a video here for you:
• Create CSV file in C# the EASY way | ...
CsvHelper homepage:
https://joshclose.github.io/CsvHelper/
SpaceX open source REST API (unofficial), lots of fun sample data if you like rockets:
https://github.com/r-spacex