C# 클래스 Engage.Dnn.Booking.CsvWriter

Writes the contents of a DataTable as comma-separated values
from http://knab.ws/blog/index.php?/archives/3-CSV-file-parser-and-writer-in-C-Part-1.html
파일 보기 프로젝트 열기: EngageSoftware/Engage-Booking 1 사용 예제들

공개 메소드들

메소드 설명
WriteToStream ( TextWriter stream, DataTable table, bool header, bool quoteAll ) : void

Writes a DataTable to a TextWriter stream.

WriteToString ( DataTable table, bool header, bool quoteAll ) : string

Writes a DataTable to string.

비공개 메소드들

메소드 설명
WriteItem ( TextWriter stream, object item, bool quoteAll ) : void

Writes a single DataTable row to a TextWriter stream.

메소드 상세

WriteToStream() 공개 정적인 메소드

Writes a DataTable to a TextWriter stream.
public static WriteToStream ( TextWriter stream, DataTable table, bool header, bool quoteAll ) : void
stream System.IO.TextWriter The stream to which the CSV should be written.
table System.Data.DataTable The table of data to write as a CSV.
header bool if set to true, include a header row.
quoteAll bool if set to true enclose all cells/fields in quotes.
리턴 void

WriteToString() 공개 정적인 메소드

Writes a DataTable to string.
public static WriteToString ( DataTable table, bool header, bool quoteAll ) : string
table System.Data.DataTable The table of data to write as a CSV.
header bool if set to true, include a header row.
quoteAll bool if set to true enclose all cells/fields in quotes.
리턴 string