C# 클래스 EnterpriseWebLibrary.IO.CsvFileWriter

Helps in writing data to a file in CSV format.
상속: TabularDataFileWriter
파일 보기 프로젝트 열기: enduracode/enterprise-web-library 1 사용 예제들

공개 메소드들

메소드 설명
AddValueToLine ( object val ) : void

Adds the given value as a column on the current line. Value may be null. If it is not null, val.ToString() determines what is added to the line.

AddValuesToLine ( ) : void

Add several values to the current line. Collection can be empty but not null.

ClearLine ( ) : void

Clears the current line. This does not affect the file at all, it simply undoes any calls to AddValueToLine made since the last WriteCurrentLineToFile call.

WriteCurrentLineToFile ( TextWriter writer ) : void

Writes the current line to the file using the given open text writer. This clears the current line after writing.

메소드 상세

AddValueToLine() 공개 메소드

Adds the given value as a column on the current line. Value may be null. If it is not null, val.ToString() determines what is added to the line.
public AddValueToLine ( object val ) : void
val object
리턴 void

AddValuesToLine() 공개 메소드

Add several values to the current line. Collection can be empty but not null.
public AddValuesToLine ( ) : void
리턴 void

ClearLine() 공개 메소드

Clears the current line. This does not affect the file at all, it simply undoes any calls to AddValueToLine made since the last WriteCurrentLineToFile call.
public ClearLine ( ) : void
리턴 void

WriteCurrentLineToFile() 공개 메소드

Writes the current line to the file using the given open text writer. This clears the current line after writing.
public WriteCurrentLineToFile ( TextWriter writer ) : void
writer System.IO.TextWriter
리턴 void