IniDuplicateSectionBehavior Enum
Definition
- Assembly
- Bodu.Text.Ini.dll
- Package
- Bodu.Text.Ini 1.0.0
Specifies how the INI document model resolves a section name that appears more than once.
public enum IniDuplicateSectionBehavior
- Extension Methods
Fields
Merge = 0Repeated sections are merged into one, with later keys appended (and duplicate keys resolved by the key policy).
Disallowed = 1A repeated section name throws IniFormatException.
Remarks
This is the central dialect divergence for INI: Windows profile APIs and many parsers merge repeated sections, while
Python's configparser (in strict mode) rejects them. The behaviour is configurable so a consumer can pin the
dialect it targets.
Applies to
| Product | Versions |
|---|---|
| .NET | 8, 10 |