JsonPathProperty<TValue> Struct

Represents an object property exposed by a JsonPathNavigator<TValue>.

public readonly struct JsonPathProperty<TValue>

Type parameters

TValue
The node type used by the JSONPath navigator.

Constructors

NameDescription
JsonPathProperty(string, TValue?)Initializes a new instance of the JsonPathProperty<TValue> struct.

JsonPathProperty(string, TValue?)

JsonPathProperty`1.cs

Initializes a new instance of the JsonPathProperty<TValue> struct.

public JsonPathProperty(string name, TValue? value)

Parameters

name string
The property name.
value TValue?
The property value.

Properties

NameDescription
NameGets the property name.
ValueGets the property value. May be null when the navigator represents JSON null as null.

Gets the property name.

public string Name { get; }

Property value

string

Gets the property value. May be null when the navigator represents JSON null as null.

public TValue? Value { get; }

Property value

TValue?