Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
GetHashCode Method

StringInfo.GetHashCode Method

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

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

[ComVisibleAttribute(false)]
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.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

XNA Framework

Supported in: 3.0, 2.0, 1.0

.NET for Windows Phone apps

Supported in: Windows Phone 8.1, Windows Phone Silverlight 8.1, Windows Phone Silverlight 8

Portable Class Library

Supported in: Portable Class Library
Show:
© 2015 Microsoft