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.
- switchValue
The SwitchExpression.SwitchValue property of the result.
- cases
The SwitchExpression.Cases property of the result.
- defaultBody
The SwitchExpression.DefaultBody property of the result.
![]()
This expression if no children are changed or an expression with the updated children.