Creates a YAML parser with a configurable maximum nesting depth.
public static IParser CreateParser(TextReader reader, int maxDepth)
The YAML reader.
The maximum allowed nesting depth for mappings and sequences.
A value of 0 uses the default limit of 64.