JsonElement.EnsurePropertyMap Method
Definition
Namespace: Corvus.Text.Json
Assembly: Corvus.Text.Json.dll
Source: JsonElement.cs
EnsurePropertyMap()
Ensures that a fast-lookup property map is created for this element.
public void EnsurePropertyMap()
Remarks
This enables dictionary-based lookup of property values in the element. If the cost of lookups exceeds the cost of building the map, this can provide substantial performance improvements. It is a zero-allocation operation.
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