Beispiel #1
0
 public static bool ExpressionEquals <T>(this IEqualityComparerExpression <T> source, IEqualityComparerExpression <T> other)
 {
     return(EqualityComparer.IsEqual(source.GetEqualsExpr(), other.GetEqualsExpr()) &&
            EqualityComparer.IsEqual(source.GetGetHashCodeExpr(), other.GetGetHashCodeExpr()));
 }
Beispiel #2
0
 public static bool ExpressionEquals(this Expression source, Expression other)
 => EqualityComparer.IsEqual(source, other);
Beispiel #3
0
 public static bool ExpressionEquals <T>(this IComparerExpression <T> source, IComparerExpression <T> other)
 => EqualityComparer.IsEqual(source.GetCompareExpr(), other.GetCompareExpr());
Beispiel #4
0
 private static bool IsEqualIECE <T>(IEqualityComparerExpression <T> o1, IEqualityComparerExpression <T> o2)
 {
     return(EqualityComparer.IsEqual(o1.GetEqualsExpr(), o2.GetEqualsExpr()) &&
            EqualityComparer.IsEqual(o1.GetGetHashCodeExpr(), o2.GetGetHashCodeExpr()));
 }