|
bool shouldRecurse = options.AllowInfiniteRecursion || currentNode.Depth < MaxDepth; |
MaxDepth is set to 10.
However, when the current node is at depth 10, it would return false.
Depth is however 0-based, so depth 9 is already 10 levels, but that is not clear in this line of code.
@dennisdoomen