C# Класс Summer.Batch.Infrastructure.Support.PropertiesConverter

Properties converter helper (NameValueCollection to String, and back).
Показать файл Открыть проект

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

Метод Описание
PropertiesToString ( NameValueCollection propertiesToParse ) : string

Convert NameValueCollection object to String. This is only necessary for compatibility with converting the String back to a NameValueCollection object. If an empty properties object is passed in, nempty string is returned, otherwise its string representation is returned.

StringToProperties ( string stringToParse ) : NameValueCollection

Parse a String to a NameValueCollection object. If string is null, an empty NameValueCollection object will be returned. The input String is a set of name=value pairs, delimited by either newline or comma (for brevity). If the input String contains a newline it is assumed that the separator is newline, otherwise comma.

Описание методов

PropertiesToString() публичный статический Метод

Convert NameValueCollection object to String. This is only necessary for compatibility with converting the String back to a NameValueCollection object. If an empty properties object is passed in, nempty string is returned, otherwise its string representation is returned.
 in case of I/O errors
public static PropertiesToString ( NameValueCollection propertiesToParse ) : string
propertiesToParse System.Collections.Specialized.NameValueCollection the NameValueCollection to load into
Результат string

StringToProperties() публичный статический Метод

Parse a String to a NameValueCollection object. If string is null, an empty NameValueCollection object will be returned. The input String is a set of name=value pairs, delimited by either newline or comma (for brevity). If the input String contains a newline it is assumed that the separator is newline, otherwise comma.
 in case of I/O errors
public static StringToProperties ( string stringToParse ) : NameValueCollection
stringToParse string String to parse
Результат System.Collections.Specialized.NameValueCollection