TomlDuplicateKeyHandling Enum

Specifies behavior when duplicate keys are encountered.

public enum TomlDuplicateKeyHandling

Remarks

This setting only applies to keys assigned a value twice. A document that redefines a table, extends an inline table or a static array, or assigns a value to a key defined as a table is invalid TOML and is always rejected.

Fields

NameValueDescription
Error0Reject duplicate keys, as required by the TOML specification.
LastWins1Keep the last value for a key assigned more than once.