CreateParser(TextReader, Int32) Method

Definition

Namespace SharpYaml
Assembly SharpYaml.dll

Creates a YAML parser with a configurable maximum nesting depth.

public static IParser CreateParser(TextReader reader, int maxDepth)

Parameters

reader
TextReader

The YAML reader.

maxDepth
Int32

The maximum allowed nesting depth for mappings and sequences. A value of 0 uses the default limit of 64.

Returns

IParser
The parser.