JsonProperty<TValue>.AsJsonElementProperty Method
Definition
Namespace: Corvus.Text.Json
Assembly: Corvus.Text.Json.dll
Source: JsonProperty.cs
AsJsonElementProperty()
Converts this property to a JsonProperty of JsonElement, preserving the same property name and document position.
public JsonProperty<JsonElement> AsJsonElementProperty()
Returns
A JsonProperty with the value as a JsonElement.
Remarks
This is a zero-allocation conversion. The returned property references the same parent document and index as this property.
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