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

TryIncrement() public method

Increments the current recursion level, and returns whether current is still less than Maximum.
public TryIncrement ( ) : bool
return bool
        public bool TryIncrement()
        {
            if (current < Maximum)
            {
                ++current;
                return true;
            }
            return false;
        }