Table of Contents

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

properties IReadOnlyDictionary<string, JsonElement>

The properties.

pathSegments ReadOnlySpan<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

properties JsonElement

The properties.

pathSegments ReadOnlySpan<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

properties IReadOnlyDictionary<string, JsonElement>

The properties.

pathSegments ReadOnlySpan<string>

The propery path segments.

Returns

string

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

properties JsonElement

The properties.

pathSegments ReadOnlySpan<string>

The propery path segments.

Returns

string