Table of Contents

IniDocumentOptions Struct

Definition

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

Provides configuration for the INI document model, controlling how duplicate sections and duplicate keys are resolved when a document is materialized.

public readonly struct IniDocumentOptions
Inherited Members
Extension Methods

Remarks

The source-order Utf8IniReader surfaces the document verbatim and never applies these policies; they take effect when a document is materialized into the mutable IniNode tree or the read-only IniDocument.

Properties

Default

Gets the default document options (duplicate sections merge, the last duplicate key wins).

public static IniDocumentOptions Default { get; }

Property Value

IniDocumentOptions

The default options.

DuplicateKeyBehavior

Gets the policy applied when a key appears more than once within the same section.

public IniDuplicateKeyBehavior DuplicateKeyBehavior { get; init; }

Property Value

IniDuplicateKeyBehavior

The duplicate-key policy; the default is LastWins.

DuplicateSectionBehavior

Gets the policy applied when a section name appears more than once.

public IniDuplicateSectionBehavior DuplicateSectionBehavior { get; init; }

Property Value

IniDuplicateSectionBehavior

The duplicate-section policy; the default is Merge.

Applies to

ProductVersions
.NET8, 10