GetHashCode Method

StringInfo.GetHashCode Method ()


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

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

override GetHashCode : unit -> int

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.

Universal Windows Platform
Available since 4.5
.NET Framework
Available since 2.0
Portable Class Library
Supported in: portable .NET platforms
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top
© 2015 Microsoft