CreateReader(String) Method

Definition

Assembly SharpYaml.dll

Creates a YAML reader over a string payload that shares the current reader's reference anchor state.

public YamlReader CreateReader(string yaml)

Parameters

yaml
String

The YAML payload.

Returns

YamlReader
A new reader for yaml.

Remarks

This is intended for advanced scenarios such as polymorphic deserialization that buffers a node and needs to re-parse it while preserving anchors and aliases.