System.Linq.Expressions.SwitchExpression.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 SwitchExpression Update (Expression switchValue, IEnumerable<SwitchCase> cases, Expression defaultBody)

Parameters

switchValue
The SwitchExpression.SwitchValue property of the result.
cases
The SwitchExpression.Cases property of the result.
defaultBody
The SwitchExpression.DefaultBody 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