Click or drag to resize

CompareByFieldKeyGetHashCode32 Method

Microsoft messed up the 64 bit version of GetHashCode. Use this original 32-bit version to get consistent String hash codes across 32 bit and 64 bit builds. See remarks in https://msdn.microsoft.com/en-us/library/system.string.gethashcode(v=vs.110).aspx

Namespace:  VelocityDb.Collection.Comparer
Assembly:  VelocityDb (in VelocityDb.dll) Version: 11.1.0.0 (11.1)
Syntax
public static int GetHashCode32(
	string s
)

Parameters

s
Type: SystemString
String to compute hash code for.

Return Value

Type: Int32
A 32-bit hash code
See Also