Skip to content

JsonPointer.From Method

Definition

Namespace: Corvus.Text.Json.Patch
Assembly: Corvus.Text.Json.dll

From(T)

Gets an instance of the JSON value from another element.

public static JsonPointer From<T>(in T instance)
    where T : struct, IJsonElement<T>

Type Parameters

Parameter Description
T The type of the IJsonElement from which to instantiate the instance.

Parameters

Name Type Description
instance T The IJsonElement value from which to instantiate the instance.

Returns

JsonPointer

An instance of this type, initialized from the JSON element.

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

Collaborate with us on GitHub

The source for this content can be found on GitHub, where you can also create and review issues and pull requests.

Open an issue