Share via


ValueComparer.ExtractEqualsBody(Expression, Expression) Method

Definition

Takes EqualsExpression and replaces the two parameters with the given expressions, returning the transformed body.

public virtual System.Linq.Expressions.Expression ExtractEqualsBody (System.Linq.Expressions.Expression leftExpression, System.Linq.Expressions.Expression rightExpression);
abstract member ExtractEqualsBody : System.Linq.Expressions.Expression * System.Linq.Expressions.Expression -> System.Linq.Expressions.Expression
override this.ExtractEqualsBody : System.Linq.Expressions.Expression * System.Linq.Expressions.Expression -> System.Linq.Expressions.Expression
Public Overridable Function ExtractEqualsBody (leftExpression As Expression, rightExpression As Expression) As Expression

Parameters

leftExpression
Expression

The new left expression.

rightExpression
Expression

The new right expression.

Returns

The body of the lambda with left and right parameters replaced.

Applies to