Yaml.Parse Method

Namespace
Kampute.DocToolkit.Support
Assembly
  • Kampute.DocToolkit.dll

Definition

Parses the specified YAML text into a read-only dictionary.
public static IReadOnlyDictionary<string, object> Parse(ReadOnlySpan<char> text)

Parameters

text ReadOnlySpan<char>
The YAML text to parse.

Returns

IReadOnlyDictionary<string, object>
A read-only dictionary containing parsed keys and values.

Exceptions

ArgumentNullException
Thrown when text is null.
FormatException
Thrown when the YAML content is malformed or uses unsupported constructs.