ParsedJsonDocument<T>.StringConstant Method
Definition
Namespace: Corvus.Text.Json
Assembly: Corvus.Text.Json.dll
Source: ParsedJsonDocument.Parse.cs
StringConstant(byte[])
Creates a constant string instance that does not require disposal.
public static T StringConstant(byte[] quotedUtf8String)
Parameters
| Name | Type | Description |
|---|---|---|
quotedUtf8String |
byte[] |
The quoted UTF-8 string constant value. |
Returns
T
The instance.
Remarks
This is used for fast initialization for a static value.
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