ExpressionExtensions.Assign(MemberExpression, Expression) 方法

定义

创建一个表示赋值运算的 BinaryExpression

public static System.Linq.Expressions.Expression Assign (this System.Linq.Expressions.MemberExpression memberExpression, System.Linq.Expressions.Expression valueExpression);
[System.Diagnostics.CodeAnalysis.DynamicDependency]
[System.Diagnostics.CodeAnalysis.UnconditionalSuppressMessage("ReflectionAnalysis", "IL2077", Justification="AssignBinaryExpression is preserved via DynamicDependency below")]
public static System.Linq.Expressions.Expression Assign (this System.Linq.Expressions.MemberExpression memberExpression, System.Linq.Expressions.Expression valueExpression);
static member Assign : System.Linq.Expressions.MemberExpression * System.Linq.Expressions.Expression -> System.Linq.Expressions.Expression
[<System.Diagnostics.CodeAnalysis.DynamicDependency>]
[<System.Diagnostics.CodeAnalysis.UnconditionalSuppressMessage("ReflectionAnalysis", "IL2077", Justification="AssignBinaryExpression is preserved via DynamicDependency below")>]
static member Assign : System.Linq.Expressions.MemberExpression * System.Linq.Expressions.Expression -> System.Linq.Expressions.Expression
<Extension()>
Public Function Assign (memberExpression As MemberExpression, valueExpression As Expression) As Expression

参数

memberExpression
MemberExpression

要向其进行分配的成员。

valueExpression
Expression

将分配的值。

返回

表示 BinaryExpression 赋值绑定的 。

属性

适用于