C# 클래스 Summer.Batch.Infrastructure.Support.PropertiesConverter

Properties converter helper (NameValueCollection to String, and back).
파일 보기 프로젝트 열기: SummerBatch/SummerBatch

공개 메소드들

메소드 설명
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