C# Class ConstructorIO.Util

显示文件 Open project: Constructor-io/constructorio-csharp

Public Methods

Method Description
LoadCSV ( string filename ) : IEnumerable

Load a CSV file, read all entries and return ListItem objects

Merge ( object>.Dictionary from, object>.Dictionary into ) : void

Merge two Hash tables (Dictionary)

SerializeParams ( object>.IDictionary paramDict ) : string

Serializes url params in a rudimentary way, and you must write other helper methods to serialize other things.

Private Methods

Method Description
isString ( string value ) : bool

Check if a value is string or not

Method Details

LoadCSV() public static method

Load a CSV file, read all entries and return ListItem objects
public static LoadCSV ( string filename ) : IEnumerable
filename string CSV file
return IEnumerable

Merge() public static method

Merge two Hash tables (Dictionary)
public static Merge ( object>.Dictionary from, object>.Dictionary into ) : void
from object>.Dictionary
into object>.Dictionary
return void

SerializeParams() public static method

Serializes url params in a rudimentary way, and you must write other helper methods to serialize other things.
public static SerializeParams ( object>.IDictionary paramDict ) : string
paramDict object>.IDictionary params HashMap of the parameters to encode.
return string