TomlDottedKeyHandling Enum

Specifies how member names and dictionary keys containing '.' are written.

public enum TomlDottedKeyHandling

Remarks

Only writing is affected. A key read from TOML is a single key, so a document written with TomlDottedKeyHandling.Expand is read back as nested tables, and a model whose member names or dictionary keys contain '.' does not round-trip with it.

Fields

NameValueDescription
Literal0Treat keys containing '.' as a literal key name by quoting/escaping as needed.
Expand1Treat keys containing '.' as a dotted path and expand into subtables. This is a write-only layout: the subtables are read back as nested tables.