C# Class DynamicJson.Utilities

Datei anzeigen Open project: pieterbreed/Dynamic-Json-for-.NET

Public Methods

Method Description
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" ]

Method Details

GetStringValueFromToken() public static method

public static GetStringValueFromToken ( string tokenValue ) : string
tokenValue string
return string

JsonUnescape() public static method

public static JsonUnescape ( this str ) : string
str this
return string

PerformOneEscapeStep() public static method

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
return IEnumerable