Expression.ReferenceEqual(Expression, Expression) 方法
定义
创建一个表示引用相等比较的 BinaryExpression。Creates a BinaryExpression that represents a reference equality comparison.
public:
static System::Linq::Expressions::BinaryExpression ^ ReferenceEqual(System::Linq::Expressions::Expression ^ left, System::Linq::Expressions::Expression ^ right);
public static System.Linq.Expressions.BinaryExpression ReferenceEqual (System.Linq.Expressions.Expression left, System.Linq.Expressions.Expression right);
static member ReferenceEqual : System.Linq.Expressions.Expression * System.Linq.Expressions.Expression -> System.Linq.Expressions.BinaryExpression
Public Shared Function ReferenceEqual (left As Expression, right As Expression) As BinaryExpression
参数
- left
- Expression
要将 Expression 属性设置为与其相等的 Left。An Expression to set the Left property equal to.
- right
- Expression
要将 Expression 属性设置为与其相等的 Right。An Expression to set the Right property equal to.
返回
一个 BinaryExpression,其 NodeType 属性等于 Equal,并且其 Left 和 Right 属性设置为指定值。A BinaryExpression that has the NodeType property equal to Equal and the Left and Right properties set to the specified values.