private void VisitNode(NumberNode node, int level) { if (!OnVisited.Invoke(node, level)) { return; } foreach (var child in node.Children) { VisitNode(child, level + 1); } }
public void Visited(bool centered) { OnVisited?.Invoke(centered); }
private void VisitNode(NumberNode node, int level) { if (!OnVisited.Invoke(node, level)) { return; } foreach (var child in node.Children) { VisitNode(child, level + 1); } }
public void Visited(bool centered) { OnVisited?.Invoke(centered); }