Open sandboxFocus

Method GetHashCode

GetHashCode(RefComparison)

Returns a hash code for this reference using the specified comparison strategy.

Declaration
int GetHashCode(RefComparison comparison)
Parameters
Type Name Description
RefComparison comparison

The comparison strategy to use. See RefComparison for available options.

Returns
Type Description
int

A hash code compatible with the specified comparison strategy.

See Also