C# Class ModServer.HelperClass

Datei anzeigen Open project: tyandjel94/RowanParkingPassApp Class Usage Examples

Public Properties

Property Type Description
transformNull string>.Func

Protected Properties

Property Type Description
stream Stream

Public Methods

Method Description
HelperClass ( Stream stream, TcpClient client ) : System
parseKVP ( string parseMe, char seperator, char terminator, bool trim = false, string>.Func transform = null ) : string>.Dictionary

Attempts to convert a string of key value pairs to a Dictionary object.

Method Details

HelperClass() public method

public HelperClass ( Stream stream, TcpClient client ) : System
stream Stream
client System.Net.Sockets.TcpClient
return System

parseKVP() public static method

Attempts to convert a string of key value pairs to a Dictionary object.
public static parseKVP ( string parseMe, char seperator, char terminator, bool trim = false, string>.Func transform = null ) : string>.Dictionary
parseMe string The string to parse
seperator char The string between the key and the value
terminator char The string seperating each key value pair
trim bool
transform string>.Func A function that takes one string parameter and returns a transformed version of the text. Applied to both key and value AFTER parsing
return string>.Dictionary

Property Details

stream protected_oe property

protected Stream stream
return Stream

transformNull public_oe static_oe property

public static Func transformNull
return string>.Func