YamlLoader.GetYamlDocuments method

Parses one or more YAML documents from a string and returns a YamlStream. Set useMergingParser to true to enable YAML anchors/aliases mergehandling.

public static YamlStream GetYamlDocuments(string yaml, bool useMergingParser = false)
parameter description
yaml The YAML string to parse.
useMergingParser Whether to use a merging parser to handle anchors and aliases.

Return Value

A YamlStream containing the parsed documents.

Exceptions

exception condition
ArgumentNullException Thrown if the input YAML string is null.

See Also