C# Class Onism.Cldr.Tools.Subsetting.JTokenExtensions

Afficher le fichier Open project: pgolebiowski/onism-cldr

Méthodes publiques

Méthode Description
RemoveFromParent ( this token ) : JToken

Removes this token from its parent. Assumes only JArray, JObject, JProperty, or JValue are to be encountered.

Subset ( this root, PatternCollection patterns ) : void

Removes tokens from this JSON token using a collection of patterns.

Private Methods

Méthode Description
Subset ( JToken token, Decision decision, DecisionDictionary decisions ) : void

Traverses the JSON in post-order, removing tokens bottom-up.

Method Details

RemoveFromParent() public static méthode

Removes this token from its parent. Assumes only JArray, JObject, JProperty, or JValue are to be encountered.
public static RemoveFromParent ( this token ) : JToken
token this
Résultat JToken

Subset() public static méthode

Removes tokens from this JSON token using a collection of patterns.
public static Subset ( this root, PatternCollection patterns ) : void
root this
patterns PatternCollection
Résultat void