C# Класс DynamicJson.Utilities

Показать файл Открыть проект

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

Метод Описание
GetStringValueFromToken ( string tokenValue ) : string
JsonUnescape ( this str ) : string
PerformOneEscapeStep ( string from, string to, IEnumerable inputs ) : IEnumerable

this ugly method performs one escape sequence step. if it is called with (@"\t", "\t", ["aaa\\tbbb\\tccc", "\\tddd"]) it will return [ "aaa", "\t", "bbb", "\t", "ccc", "\t", "ddd" ]

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

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

public static GetStringValueFromToken ( string tokenValue ) : string
tokenValue string
Результат string

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

public static JsonUnescape ( this str ) : string
str this
Результат string

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

this ugly method performs one escape sequence step. if it is called with (@"\t", "\t", ["aaa\\tbbb\\tccc", "\\tddd"]) it will return [ "aaa", "\t", "bbb", "\t", "ccc", "\t", "ddd" ]
public static PerformOneEscapeStep ( string from, string to, IEnumerable inputs ) : IEnumerable
from string the sequence that must be replaced
to string what it must be replaced with
inputs IEnumerable an enumerable of strings that must all have the escape performed on them
Результат IEnumerable