Class StableExpressionSlimHasher
Utility to create stable hash codes for expression trees.
Inherited Members
Namespace: System.Linq.Expressions
Assembly: Nuqleon.Linq.Expressions.Bonsai.Hashing.dll
Syntax
public class StableExpressionSlimHasher : ExpressionSlimHasher
Constructors
StableExpressionSlimHasher(StableExpressionSlimHashingOptions)
Creates a new stable expression hasher with the specified options
.
Declaration
public StableExpressionSlimHasher(StableExpressionSlimHashingOptions options)
Parameters
Type | Name | Description |
---|---|---|
StableExpressionSlimHashingOptions | options | Options to influence the behavior of stable hashing of expression trees. |
Methods
GetHashCode(ObjectSlim)
Gets the hash code for the specified object value
.
Declaration
protected override int GetHashCode(ObjectSlim value)
Parameters
Type | Name | Description |
---|---|---|
System.ObjectSlim | value | The object value to get the hash code for. |
Returns
Type | Description |
---|---|
System.Int32 | A hash code for the specified object |
Overrides
GetHashCode(AssemblySlim)
Gets the hash code for the specified assembly
.
Declaration
protected override int GetHashCode(AssemblySlim assembly)
Parameters
Type | Name | Description |
---|---|---|
AssemblySlim | assembly | The assembly to get the hash code for. |
Returns
Type | Description |
---|---|
System.Int32 | A hash code for the specified |
Overrides
GetHashCode(String)
Gets the hash code for the specified string value
.
Declaration
protected override int GetHashCode(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | The string value to get the hash code for. |
Returns
Type | Description |
---|---|
System.Int32 | A hash code for the specified string |