Skip to content

ObjectEnumerator

Definition

Namespace: Corvus.Text.Json.Internal
Assembly: Corvus.Text.Json.dll
Source: ObjectEnumerator.cs

An enumerable and enumerator for the properties of a JSON object.

public readonly struct ObjectEnumerator

Constructors

Constructor Description
ObjectEnumerator(IJsonDocument, int) Initializes a new instance of the ObjectEnumerator struct.

Properties

Property Type Description
CurrentIndex int Gets the current index in the document.

Methods

Method Description
Dispose() Releases resources used by the enumerator.
MoveNext() Advances the enumerator to the next element of the collection.
Reset() Sets the enumerator to its initial position, which is before the first element.

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