Table of Contents

YamlReaderOptions Struct

Definition

Namespace
Bodu.Text.Yaml.Reader
Assembly
Bodu.Text.Yaml.dll
Package
Bodu.Text.Yaml 1.0.0
Source
YamlReaderOptions.cs

Provides options that configure how YAML source is parsed by the reader and document layers.

public struct YamlReaderOptions
Inherited Members
Extension Methods

Properties

DuplicateKeyBehavior

Gets or sets the policy applied when a mapping declares the same key more than once.

public YamlDuplicateKeyBehavior DuplicateKeyBehavior { readonly get; set; }

Property Value

YamlDuplicateKeyBehavior

The duplicate-key policy; the default is Throw.

MaxDepth

Gets or sets the maximum container nesting depth permitted while parsing.

public int MaxDepth { readonly get; set; }

Property Value

int

The maximum depth. A value of zero or less selects the default of 64. Larger values are clamped to the implementation ceiling.

MergeKeyBehavior

Gets or sets the policy applied to the YAML merge key (<<).

public YamlMergeKeyBehavior MergeKeyBehavior { readonly get; set; }

Property Value

YamlMergeKeyBehavior

The merge-key policy; the default is Expand.

SpecVersion

Gets or sets the YAML specification version whose implicit type resolution is applied to plain scalars.

public YamlSpecVersion SpecVersion { readonly get; set; }

Property Value

YamlSpecVersion

The specification version; the default is V1_2.

Applies to

ProductVersions
.NET8, 10