System.Linq.Expressions.ListInitExpression.Update Method

Creates a new expression that is like this one, but using the supplied children. If all of the children are the same, it will return this expression.

Syntax

public ListInitExpression Update (NewExpression newExpression, IEnumerable<ElementInit> initializers)

Parameters

newExpression
The ListInitExpression.NewExpression property of the result.
initializers
The ListInitExpression.Initializers property of the result.

Returns

This expression if no children are changed or an expression with the updated children.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: System.Linq.Expressions
Assembly: System.Core (in System.Core.dll)
Assembly Versions: 4.0.0.0