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

StringInfo.GetHashCode Method

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

Calculates a hash code for the value of the current StringInfo object.

Namespace:  System.Globalization
Assembly:  mscorlib (in mscorlib.dll)

public override int GetHashCode()

Return Value

Type: System.Int32
A 32-bit signed integer hash code based on the string value of this StringInfo object.

The behavior of GetHashCode is dependent on its implementation, which might change from one version of the common language runtime to another. This might happen to improve the performance of GetHashCode. To make the behavior of GetHashCode constant, the application should override the runtime implementation of GetHashCode with an implementation known to never change.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft