Class JsonDefinesFormatter
Transforms JsonNode into another one where some keys are deleted
Inheritance
object
JsonDefinesFormatter
Namespace: BuildSystem.Utils.Json
Assembly: BuildSystem.Utils.dll
Syntax
public class JsonDefinesFormatter : Object
Constructors
JsonDefinesFormatter(HashSet<string>)
Transforms JsonNode into another one where some keys are deleted
Declaration
public JsonDefinesFormatter(HashSet<string> defines)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.HashSet<><string> | defines |
Properties
Defines
List of string values - the same as DEFINES in RAD Studio
Declaration
public HashSet<string> Defines { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.HashSet<><string> |
Methods
TransformJson(JsonNode)
Deletes from source json all JsonObject where:
Declaration
public JsonNode TransformJson(JsonNode sourceJson)
Parameters
Type | Name | Description |
---|---|---|
System.Text.Json.Nodes.JsonNode | sourceJson |
Returns
Type | Description |
---|---|
System.Text.Json.Nodes.JsonNode |