GetHashCode Method
Collapse the table of content
Expand the table of content

RuntimeHelpers.GetHashCode Method

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

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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)

'Declaration
Public Shared Function GetHashCode ( _
	o As Object _
) As Integer

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:
© 2017 Microsoft