/// <summary> /// Recursively enumerate all the children, executing the specified delegate on each child. /// </summary> /// <param name="visitor">The delegate to execute.</param> public bool EnumerateChildren(ExpressionVisitDelegate visitor) { if (Expressions != null) { foreach (var outline in Expressions) { foreach (var expr in outline) { if (visitor(expr) || expr.EnumerateChildren(visitor)) { return(true); } } } } return(false); }
/// <summary> /// Recursively enumerate all the children, executing the specified delegate on each child. /// </summary> /// <param name="visitor">The delegate to execute.</param> public bool EnumerateChildren(ExpressionVisitDelegate visitor) { if (Expressions != null) { foreach (var outline in Expressions) { foreach (var expr in outline) { if (visitor(expr) || expr.EnumerateChildren(visitor)) { return true; } } } } return false; }