Skip to content

JsonString.From Method

Definition

Namespace: Corvus.Text.Json.AsyncApi.Internal
Assembly: Corvus.Text.Json.dll

From(T)

Gets an instance of the JSON value from another element.

public static JsonString 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

JsonString

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

Applies To

Product Versions
.NET 9, 10

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