TomlRootValueHandling Enum
Specifies behavior for scalar/array roots that do not naturally map to a TOML document.
public enum TomlRootValueHandlingFields
| Name | Value | Description |
|---|---|---|
Error | 0 | Throw when attempting to serialize/deserialize a non-table root. |
WrapInRootKey | 1 | Wrap the root value under TomlSerializerOptions.RootValueKeyName. |