Share via


JsonPatch.TryGetNullableValue<T> Method

Definition

Tries to get a UInt16 value at the specified JSON path.

public bool TryGetNullableValue<T>(ReadOnlySpan<byte> jsonPath, out T? value) where T : struct;
member this.TryGetNullableValue : ReadOnlySpan<byte> * Nullable -> bool (requires 'T : struct)
Public Function TryGetNullableValue(Of T As Structure) (jsonPath As ReadOnlySpan(Of Byte), ByRef value As Nullable(Of T)) As Boolean

Type Parameters

T

Parameters

jsonPath
ReadOnlySpan<Byte>

The JSON path of the value to get.

value
Nullable<T>

The value if found.

Returns

True if the value was found and parsed; otherwise, false.

Applies to