Share via


ExpressionExtensions.CreateEqualsExpression Method

Definition

Creates an Expression tree representing equality comparison between 2 expressions using Equals(Object, Object) method.

This method is typically used by database providers (and other extensions). It is generally not used in application code.

public static System.Linq.Expressions.Expression CreateEqualsExpression (System.Linq.Expressions.Expression left, System.Linq.Expressions.Expression right, bool negated = false);
static member CreateEqualsExpression : System.Linq.Expressions.Expression * System.Linq.Expressions.Expression * bool -> System.Linq.Expressions.Expression
Public Function CreateEqualsExpression (left As Expression, right As Expression, Optional negated As Boolean = false) As Expression

Parameters

left
Expression

The left expression in equality comparison.

right
Expression

The right expression in equality comparison.

negated
Boolean

If the comparison is non-equality.

Returns

An expression to compare left and right expressions.

Applies to