C# Class YamlDotNet.Core.RecursionLevel

Keeps track of the current recursion level, and throws MaximumRecursionLevelReachedException whenever Maximum is reached.
ファイルを表示 Open project: aaubry/YamlDotNet Class Usage Examples

Public Methods

Method Description
Decrement ( ) : void

Decrements the current recursion level.

Increment ( ) : void

Increments the current recursion level, and throws MaximumRecursionLevelReachedException if Maximum is reached.

RecursionLevel ( int maximum ) : System
TryIncrement ( ) : bool

Increments the current recursion level, and returns whether current is still less than Maximum.

Method Details

Decrement() public method

Decrements the current recursion level.
public Decrement ( ) : void
return void

Increment() public method

Increments the current recursion level, and throws MaximumRecursionLevelReachedException if Maximum is reached.
public Increment ( ) : void
return void

RecursionLevel() public method

public RecursionLevel ( int maximum ) : System
maximum int
return System

TryIncrement() public method

Increments the current recursion level, and returns whether current is still less than Maximum.
public TryIncrement ( ) : bool
return bool