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
)
Public Shared Function GetHashCode32 (
s As String
) As Integer
public:
static int GetHashCode32(
String^ s
)
static member GetHashCode32 :
s : string -> int
Parameters
- s
- Type: SystemString
String to compute hash code for.
Return Value
Type:
Int32A 32-bit hash code
See Also