RuntimeHelpers.GetHashCode Method

July 28, 2014

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures such as a hash table.

Namespace:  System.Runtime.CompilerServices
Assembly:  mscorlib (in mscorlib.dll)

public static int GetHashCode(
	Object o
)

Parameters

o
Type: System.Object
An Object to retrieve the hash code for.

Return Value

Type: System.Int32
A hash code for the Object identified by the o parameter.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2014 Microsoft