C# 클래스 Wxv.Swg.Common.CsvUtil

A CSV String Formatting & Parsing class that also provides some static methods for quick access Example of proper formatting use : Console.WriteLine (String.Format (new CsvUtil (), "{0} converts to {1:csv}", myStr)); Example of quicky use : Console.WriteLine (CsvUtil.Format (myStr)); or Console.WriteLine (CsvUtil.Format (myStrCollection));
파일 보기 프로젝트 열기: wverkley/Swg.Explorer

공개 메소드들

메소드 설명
Format ( ICollection collection ) : string
Format ( object value ) : string
Parse ( string str, Type destinationType ) : Array
Parse ( TextReader reader ) : string[]

Parses a CSV record from a TextReader. Returns null if it doesnt find a complete line or its at the end.

Parse ( string str ) : string[]

Parse this string into a CSV record. Returns null if its not complete.

ParseIsComplete ( string str ) : bool

Does this string represent a complete CSV record?

비공개 메소드들

메소드 설명
Parse ( string str, List result ) : bool
ParseField ( string str ) : string

메소드 상세

Format() 공개 정적인 메소드

public static Format ( ICollection collection ) : string
collection ICollection
리턴 string

Format() 공개 정적인 메소드

public static Format ( object value ) : string
value object
리턴 string

Parse() 공개 정적인 메소드

public static Parse ( string str, Type destinationType ) : Array
str string
destinationType System.Type
리턴 System.Array

Parse() 공개 정적인 메소드

Parses a CSV record from a TextReader. Returns null if it doesnt find a complete line or its at the end.
public static Parse ( TextReader reader ) : string[]
reader TextReader
리턴 string[]

Parse() 공개 정적인 메소드

Parse this string into a CSV record. Returns null if its not complete.
public static Parse ( string str ) : string[]
str string
리턴 string[]

ParseIsComplete() 공개 정적인 메소드

Does this string represent a complete CSV record?
public static ParseIsComplete ( string str ) : bool
str string
리턴 bool