ParsedJsonDocument<T>.NumberConstant Method
Definition
Namespace: Corvus.Text.Json
Assembly: Corvus.Text.Json.dll
Source: ParsedJsonDocument.Parse.cs
NumberConstant(byte[])
Creates a constant number instance that does not require disposal.
public static T NumberConstant(byte[] utf8Number)
Parameters
| Name | Type | Description |
|---|---|---|
utf8Number |
byte[] |
The UTF-8 number 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