Class PropReader
Static method for read value of property in JSON file
Inheritance
object
PropReader
Namespace: BuildSystem.Utils
Assembly: BuildSystem.Utils.dll
Syntax
public static class PropReader : Object
Methods
read(string, string?)
Read the value of property. Next situations are under control:
- Used environment variables
- Use relative path
Declaration
public static string read(string value, string? relativePath)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value | Reading value |
| string | relativePath | Relative path, which will be added if the path is relative |
Returns
| Type | Description |
|---|---|
| string | Value of property through all transformations |
read(JsonNode?, string?)
Read the value of property. Next situations are under control:
- Used environment variables
- Use relative path
Declaration
public static string read(JsonNode? jsonPath, string? relativePath)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Text.Json.Nodes.JsonNode | jsonPath | JSON node, which value will be read |
| string | relativePath | Relative path, which will be added if the path is relative |
Returns
| Type | Description |
|---|---|
| string | Value of property through all transformations |