项目作者: mfhs

项目描述 :
A generic C# entity collection to Csv (Rfc4180) record(s) converter/serializer
高级语言: C#
项目地址: git://github.com/mfhs/entity-to-csv.git
创建时间: 2019-06-21T07:20:00Z
项目社区:https://github.com/mfhs/entity-to-csv

开源协议:MIT License

下载


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:

  1. var CsvString = EntityToCsvSerializer.SerializeToDelimitedText(PassyourEntityCollection);

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