JsonElement.From Method
Definition
Namespace: Corvus.Text.Json
Assembly: Corvus.Text.Json.dll
Source: JsonElement.cs
From(ref T)
Create an instance of a JsonElement from a IJsonElement.
public static JsonElement From<T>(ref T instance)
where T : struct, IJsonElement<T>
Type Parameters
| Parameter | Description |
|---|---|
T |
The type of the source element. |
Parameters
| Name | Type | Description |
|---|---|---|
instance |
ref T |
The instance of the source element. |
Returns
An instance of a JsonElement.
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