Class PropertiesExtensions
- Namespace
- Nexus.DataModel
- Assembly
- Nexus.Extensibility.dll
A static class with extensions for JsonElement.
public static class PropertiesExtensions
- Inheritance
-
PropertiesExtensions
- Inherited Members
Methods
GetStringArray(IReadOnlyDictionary<string, JsonElement>, params ReadOnlySpan<string>)
Reads the value of the specified property as string array if it exists.
public static string?[]? GetStringArray(this IReadOnlyDictionary<string, JsonElement> properties, params ReadOnlySpan<string> pathSegments)
Parameters
propertiesIReadOnlyDictionary<string, JsonElement>The properties.
pathSegmentsReadOnlySpan<string>The property path segments.
Returns
- string[]
GetStringArray(JsonElement, params ReadOnlySpan<string>)
Reads the value of the specified property as string array if it exists.
public static string?[]? GetStringArray(this JsonElement properties, params ReadOnlySpan<string> pathSegments)
Parameters
propertiesJsonElementThe properties.
pathSegmentsReadOnlySpan<string>The property path segments.
Returns
- string[]
GetStringValue(IReadOnlyDictionary<string, JsonElement>, params ReadOnlySpan<string>)
Reads the value of the specified property as string if it exists.
public static string? GetStringValue(this IReadOnlyDictionary<string, JsonElement> properties, params ReadOnlySpan<string> pathSegments)
Parameters
propertiesIReadOnlyDictionary<string, JsonElement>The properties.
pathSegmentsReadOnlySpan<string>The propery path segments.
Returns
GetStringValue(JsonElement, params ReadOnlySpan<string>)
Reads the value of the specified property as string if it exists.
public static string? GetStringValue(this JsonElement properties, params ReadOnlySpan<string> pathSegments)
Parameters
propertiesJsonElementThe properties.
pathSegmentsReadOnlySpan<string>The propery path segments.