Expression.ReferenceEqual(Expression, Expression) 方法

定義

建立表示參考相等比較的 BinaryExpressionCreates 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 屬性設定為與之相等的 LeftAn Expression to set the Left property equal to.

right
Expression

要將 Expression 屬性設定為與之相等的 RightAn Expression to set the Right property equal to.

傳回

BinaryExpression

BinaryExpression,其 NodeType 屬性等於 Equal,且 LeftRight 屬性設定為指定的值。A BinaryExpression that has the NodeType property equal to Equal and the Left and Right properties set to the specified values.

適用於