Table of Contents

Class SemanticExpressionEqualityComparer

Namespace
NextORM.Core
Assembly
nextorm.core.dll

Semantic equality comparer for expressions, distinct from the value-free plan comparer: literals compare by value, source parameters are alpha-equivalent, closure targets compare by reference identity plus member path, and unknown nodes are conservatively unequal. No captured value is evaluated.

public sealed class SemanticExpressionEqualityComparer : IEqualityComparer<Expression>
Inheritance
SemanticExpressionEqualityComparer
Implements
Inherited Members
Extension Methods

Fields

Instance

Shared instance.

public static readonly SemanticExpressionEqualityComparer Instance

Field Value

SemanticExpressionEqualityComparer

Methods

Equals(Expression?, Expression?)

Determines whether the specified objects are equal.

public bool Equals(Expression? x, Expression? y)

Parameters

x Expression

The first object of type T to compare.

y Expression

The second object of type T to 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

obj Expression

The object for which a hash code is to be returned.

Returns

int

A hash code for the specified object.

Exceptions

ArgumentNullException

The type of obj is a reference type and obj is null.