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
textReadOnlySpan<char>- The YAML text to parse.
Returns
- IReadOnlyDictionary<string, object>
- A read-only dictionary containing parsed keys and values.
Exceptions
- ArgumentNullException
- Thrown when
textisnull. - FormatException
- Thrown when the YAML content is malformed or uses unsupported constructs.
