Skip to content

A generic C# entity collection to Csv (Rfc4180) record(s) converter/serializer

License

Notifications You must be signed in to change notification settings

mfhs/entity-to-csv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

entity-to-csv

A generic C# entity collection to CSV converter/serializer.

RFC4180 compitable (https://tools.ietf.org/html/rfc4180) .

This project is created using Visual Studio 2017 and .NETFramework Version v4.6.1 is used.

"EntityToCsvSerializer.cs" is the main file that converter C# Entity to CSV.

It has only one public static generic method named "SerializeToDelimitedText" that takes C# EntityCollection with an optonal "delimiter" [uses comma(',') as default] and return the CSV string.

#Example:

var CsvString = EntityToCsvSerializer.SerializeToDelimitedText(PassyourEntityCollection);

For detail, please check the "EntityToCsvSerializerTests.cs" file under "EntityToCsvTests" project.

About

A generic C# entity collection to Csv (Rfc4180) record(s) converter/serializer

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages