TomlRootValueHandling Enum

Specifies behavior for scalar/array roots that do not naturally map to a TOML document.

public enum TomlRootValueHandling

Fields

NameValueDescription
Error0Throw when attempting to serialize/deserialize a non-table root.
WrapInRootKey1Wrap the root value under TomlSerializerOptions.RootValueKeyName.