Class ExpressionEqualityComparer
- Namespace
- LinqToDB.Internal.Expressions
- Assembly
- linq2db.dll
This API supports the linq2db infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.
public sealed class ExpressionEqualityComparer : IEqualityComparer<Expression>
- Inheritance
-
objectExpressionEqualityComparer
- Implements
- Extension Methods
Properties
Instance
public static ExpressionEqualityComparer Instance { get; }
Property Value
Methods
Equals(Expression?, Expression?)
Determines whether the specified objects are equal.
public bool Equals(Expression? x, Expression? y)
Parameters
xExpressionThe first object of type
Tto compare.yExpressionThe second object of type
Tto compare.
Returns
- bool
true if the specified objects are equal; otherwise, false.
GetHashCode(Expression?)
Returns a hash code for the specified object.
public int GetHashCode(Expression? obj)
Parameters
objExpressionThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
objis a reference type andobjis null.