public Update ( IEnumerable |
||
expressions | IEnumerable |
The |
return |
/// <summary> /// Visits the children of the <see cref="NewArrayExpression" />. /// </summary> /// <param name="node">The expression to visit.</param> /// <returns> /// The modified expression, if it or any subexpression was modified; /// otherwise, returns the original expression. /// </returns> protected internal virtual Expression VisitNewArray(NewArrayExpression node) { if (node == null) { throw new ArgumentNullException(nameof(node)); } return(node.Update(Visit(node.Expressions))); }
protected override ExpressionTree VisitNewArray(NewArrayExpression node) { CheckChildrenCount(node.Expressions.Count); var e = ExtractChildExpressions(0, node.Expressions.Count); var expression = node.Update(e); return(CreateExpressionTree(expression)); }
/// <summary> /// Visits the children of the <see cref="NewArrayExpression"/>. /// </summary> /// <param name="node">The expression to visit.</param> /// <returns>The modified expression, if it or any subexpression was modified; /// otherwise, returns the original expression.</returns> protected internal virtual Expression VisitNewArray(NewArrayExpression node) { return(node.Update(Visit(node.Expressions))); }