C# Class ModServer.HelperClass

Afficher le fichier Open project: tyandjel94/RowanParkingPassApp Class Usage Examples

Méthodes publiques

Свойство Type Description
transformNull string>.Func

Protected Properties

Свойство Type Description
stream Stream

Méthodes publiques

Méthode 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 méthode

public HelperClass ( Stream stream, TcpClient client ) : System
stream Stream
client System.Net.Sockets.TcpClient
Résultat System

parseKVP() public static méthode

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
Résultat string>.Dictionary

Property Details

stream protected_oe property

protected Stream stream
Résultat Stream

transformNull public_oe static_oe property

public static Func transformNull
Résultat string>.Func