C# 클래스 Mono.Csv.CsvFileWriter

Class for writing to comma-separated-value (CSV) files.
상속: CsvFileCommon, IDisposable
파일 보기 프로젝트 열기: floatinghotpot/LiteCsvParser 1 사용 예제들

공개 메소드들

메소드 설명
CsvFileWriter ( Stream stream ) : System

Initializes a new instance of the CsvFileWriter class for the specified stream.

CsvFileWriter ( StreamWriter writer ) : System

Initializes a new instance of the CsvFileWriter class for the specified stream.

CsvFileWriter ( string path ) : System

Initializes a new instance of the CsvFileWriter class for the specified file path.

Dispose ( ) : void
WriteAll ( List dataGrid ) : void
WriteAll ( List dataGrid, string path, Encoding encoding ) : void
WriteRow ( List columns ) : void

Writes a row of columns to the current CSV file.

메소드 상세

CsvFileWriter() 공개 메소드

Initializes a new instance of the CsvFileWriter class for the specified stream.
public CsvFileWriter ( Stream stream ) : System
stream Stream The stream to write to
리턴 System

CsvFileWriter() 공개 메소드

Initializes a new instance of the CsvFileWriter class for the specified stream.
public CsvFileWriter ( StreamWriter writer ) : System
writer System.IO.StreamWriter
리턴 System

CsvFileWriter() 공개 메소드

Initializes a new instance of the CsvFileWriter class for the specified file path.
public CsvFileWriter ( string path ) : System
path string The name of the CSV file to write to
리턴 System

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

WriteAll() 공개 메소드

public WriteAll ( List dataGrid ) : void
dataGrid List
리턴 void

WriteAll() 공개 정적인 메소드

public static WriteAll ( List dataGrid, string path, Encoding encoding ) : void
dataGrid List
path string
encoding System.Text.Encoding
리턴 void

WriteRow() 공개 메소드

Writes a row of columns to the current CSV file.
public WriteRow ( List columns ) : void
columns List The list of columns to write
리턴 void