Summer.Batch.Infrastructure.Support.PropertiesConverter Class Reference

Properties converter helper (NameValueCollection to String, and back). More...

Static Public Member Functions

static NameValueCollection StringToProperties (string stringToParse)
 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. More...
 
static string PropertiesToString (NameValueCollection propertiesToParse)
 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. More...
 

Detailed Description

Properties converter helper (NameValueCollection to String, and back).

Member Function Documentation

static string Summer.Batch.Infrastructure.Support.PropertiesConverter.PropertiesToString ( NameValueCollection  propertiesToParse)
static

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.

Parameters
propertiesToParsethe NameValueCollection to load into
Returns
String representation of NameValueCollection object
Exceptions
IOException in case of I/O errors
static NameValueCollection Summer.Batch.Infrastructure.Support.PropertiesConverter.StringToProperties ( string  stringToParse)
static

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.

Parameters
stringToParseString to parse
Returns
NameValueCollection parsed from each string.
Exceptions
IOException in case of I/O errors

The documentation for this class was generated from the following file:
  • Summer.Batch.Infrastructure/Support/PropertiesConverter.cs