Class SemanticEquality
Inheritance
SemanticEquality
Assembly: MetricSetTransformers.dll
public class SemanticEquality : IEqualityComparer<Expression>
Constructors
View Source
Create an instance of this class which only checks equality (and only generates
hash codes) for Expression objects following the syntax tree up
to depth, ignoring ColumnReference nodes and
parentheses.
Declaration
public SemanticEquality(int depth = 2147483647, bool unwrapTables = true)
Parameters
| Type |
Name |
Description |
| Int32 |
depth |
If this is 0, only expression properties will be compared.
|
| Boolean |
unwrapTables |
If this is true, ColumnReference nodes across tables will be treated as identical.
|
Methods
View Source
Declaration
public bool Equals(Expression x, Expression y)
Parameters
Returns
View Source
Declaration
public int GetHashCode(Expression obj)
Parameters
Returns
Implements
Extension Methods