public Update ( IEnumerable |
||
testValues | IEnumerable |
The |
body | The |
|
return |
/// <summary> /// Visits the children of the <see cref="SwitchCase" />. /// </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 virtual SwitchCase VisitSwitchCase(SwitchCase node) { if (node == null) { throw new ArgumentNullException(nameof(node)); } return(node.Update(Visit(node.TestValues), Visit(node.Body))); }
/// <summary> /// Visits the children of the <see cref="SwitchCase"/>. /// </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 virtual SwitchCase VisitSwitchCase(SwitchCase node) { return(node.Update(Visit(node.TestValues), Visit(node.Body))); }