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

IdnMapping::GetHashCode Method ()

 

Returns a hash code for this IdnMapping object.

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

public:
virtual int GetHashCode() override

Return Value

Type: System::Int32

One of four 32-bit signed constants derived from the properties of an IdnMapping object. The return value has no special meaning and is not suitable for use in a hash code algorithm.

Override the GetHashCode method if your application needs to implement a meaningful hash code algorithm.

The following example assumes that a single string can contain multiple email addresses separated by spaces. It removes the local part and the @ character from each email address, and passes the resulting domain name to the GetAscii(String^, Int32) or GetAscii(String^, Int32, Int32) method to create a Punycode domain name. The GetUnicode(String^, Int32, Int32) method then converts the Punycode domain name back into the original domain name.

No code example is currently available or this language may not be supported.

Universal Windows Platform
Available since 10
.NET Framework
Available since 2.0
Return to top
Show:
© 2016 Microsoft