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));
Показать файл Открыть проект

Открытые методы

Метод Описание
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