Table of Contents

Struct JsonIndent

Namespace
Uncreated.Warfare.Configuration
Assembly
Uncreated.Warfare.dll

Represents a temporarily indented or not indented section of JSON while using a Utf8JsonWriter.

public readonly struct JsonIndent : IDisposable
Implements
Inherited Members

Remarks

Use with ConfigurationSettings.StartIndenting and ConfigurationSettings.StopIndenting.

Fields

StartValue

Initial value of the indent setting.

public readonly bool StartValue

Field Value

bool

Writer

Active writer for this indent section.

public readonly Utf8JsonWriter? Writer

Field Value

Utf8JsonWriter

Methods

Dispose()

Revert your changes to the indent setting of a Utf8JsonWriter.

public void Dispose()