ValueComparer.ExtractEqualsBody(Expression, Expression) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework