Utf8TomlWriterOptions Struct

Options of a Utf8TomlWriter.

public struct Utf8TomlWriterOptions

Properties

NameDescription
AllowHexEscapesGets or sets a value indicating whether control characters are written with the \e and \xHH escapes of TOML 1.1. By default, the output only uses TOML 1.0 syntax.
MaxDepthGets or sets the maximum nesting depth of arrays and inline tables, the root table being one level. 0 means the default of 64.
NewLineGets or sets the new line written at the end of each line.
SkipValidationGets or sets a value indicating whether the writer skips the checks of the structure, such as a value written without a key.

Gets or sets a value indicating whether control characters are written with the \e and \xHH escapes of TOML 1.1. By default, the output only uses TOML 1.0 syntax.

public bool AllowHexEscapes { readonly get; set; }

Property value

bool

Gets or sets the maximum nesting depth of arrays and inline tables, the root table being one level. 0 means the default of 64.

public int MaxDepth { readonly get; set; }

Property value

int

Exceptions

ArgumentOutOfRangeException
The value is negative.

Gets or sets the new line written at the end of each line.

public TomlNewLineKind NewLine { readonly get; set; }

Property value

TomlNewLineKind

Exceptions

ArgumentOutOfRangeException
The value is not a defined TomlNewLineKind.

Gets or sets a value indicating whether the writer skips the checks of the structure, such as a value written without a key.

public bool SkipValidation { readonly get; set; }

Property value

bool