FixedStringJsonDocument<T>
Definition
Namespace: Corvus.Text.Json.Internal
Assembly: Corvus.Text.Json.dll
Source: FixedStringJsonDocument.cs
Represents a JSON document based on a fixed string value.
public sealed class FixedStringJsonDocument<T> : IJsonDocument, IDisposable
where T : struct, IJsonElement<T>
Type Parameters
| Parameter | Description |
|---|---|
T |
The type of the root element in the document. |
Remarks
This type uses an internal cache to avoid allocations for evaluatoin of string values that have not originated in a regular JSON document (e.g. property names, or external strings.)
Inheritance
Object → FixedStringJsonDocument
Implements
Properties
| Property | Type | Description |
|---|---|---|
| RootElement | T |
Methods
| Method | Description |
|---|---|
Parse(ReadOnlyMemory<byte>, bool) static |
Parse an instance of the fixed string to a document, using caching. |
| ToString(int, string, IFormatProvider) | |
| TryFormat |
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