YamlDotNet.Core.RecursionLevel.Decrement C# (CSharp) Method

Decrement() public method

Decrements the current recursion level.
public Decrement ( ) : void
return void
        public void Decrement()
        {
            if (current == 0)
            {
                throw new InvalidOperationException("Attempted to decrement RecursionLevel to a negative value");
            }
            --current;
        }