EagerStringValues Property

Definition

Namespace Tomlyn.Parsing
Assembly Tomlyn.dll

Gets or sets a value indicating whether the parser should eagerly materialize simple string values (single-line basic strings without escape sequences) even when DecodeScalars is false.

public bool EagerStringValues { get; init; }

Returns

Remarks

This option can improve performance for deserialization scenarios that always consume string values (for example, via GetString()), while still avoiding eager decoding for complex strings that contain escape sequences.