C# Класс ModServer.HelperClass

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
transformNull string>.Func

Защищенные свойства (Protected)

Свойство Тип Описание
stream Stream

Открытые методы

Метод Описание
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.

Описание методов

HelperClass() публичный Метод

public HelperClass ( Stream stream, TcpClient client ) : System
stream Stream
client System.Net.Sockets.TcpClient
Результат System

parseKVP() публичный статический Метод

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
Результат string>.Dictionary

Описание свойств

stream защищенное свойство

protected Stream stream
Результат Stream

transformNull публичное статическое свойство

public static Func transformNull
Результат string>.Func