Table of Contents

IniDuplicateSectionBehavior Enum

Definition

Namespace
Bodu.Text.Ini
Assembly
Bodu.Text.Ini.dll
Package
Bodu.Text.Ini 1.0.0
Source
IniDuplicateSectionBehavior.cs

Specifies how the INI document model resolves a section name that appears more than once.

public enum IniDuplicateSectionBehavior
Extension Methods

Fields

Merge = 0

Repeated sections are merged into one, with later keys appended (and duplicate keys resolved by the key policy).

Disallowed = 1

A 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

ProductVersions
.NET8, 10