SwitchCase.Update(IEnumerable<Expression>, Expression) 方法

定义

创建类似于此表达式的新表达式,但使用提供的子级。 如果所有子级都相同,它将返回此表达式。

public:
 System::Linq::Expressions::SwitchCase ^ Update(System::Collections::Generic::IEnumerable<System::Linq::Expressions::Expression ^> ^ testValues, System::Linq::Expressions::Expression ^ body);
public System.Linq.Expressions.SwitchCase Update(System.Collections.Generic.IEnumerable<System.Linq.Expressions.Expression> testValues, System.Linq.Expressions.Expression body);
member this.Update : seq<System.Linq.Expressions.Expression> * System.Linq.Expressions.Expression -> System.Linq.Expressions.SwitchCase
Public Function Update (testValues As IEnumerable(Of Expression), body As Expression) As SwitchCase

参数

testValues
IEnumerable<Expression>

TestValues结果的属性。

body
Expression

Body结果的属性。

返回

如果未更改子级或具有更新的子级的表达式,则此表达式。

适用于