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! 😀
www.buymeacoff...
📬 Stay in touch! Join our mailing list
robertsdevtalk...
🐦 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# ...
CsvHelper homepage:
joshclose.gith...
SpaceX open source REST API (unofficial), lots of fun sample data if you like rockets:
github.com/r-s...
21 окт 2024