Yaml Class

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

Definition

Provides simplified YAML parsing.
public static class Yaml
Inheritance

Remarks

This class supports a limited YAML subset intended for lightweight metadata scenarios. It supports string keys, scalar values, simple sequences, simple nested mappings based on indentation, and block scalars.

The parser does not support all YAML features and is designed for simplicity and performance in common use cases. It does not handle complex constructs such as anchors, aliases, or advanced tags. For more advanced YAML processing needs, consider using a full-featured YAML library.

Fields

EmptyGets a reusable empty read-only YAML mapping.

Methods

Parse(ReadOnlySpan<char>)Parses the specified YAML text into a read-only dictionary.