StringComparer.IEqualityComparer.GetHashCode Method

.NET Framework 4.5

Returns a hash code for the specified object.

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

private abstract GetHashCode : 
        obj:Object -> int  
private override GetHashCode : 
        obj:Object -> int

Parameters

obj
Type: System.Object

The object for which a hash code is to be returned.

Return Value

Type: System.Int32
A hash code for the specified object.

Implements

IEqualityComparer.GetHashCode(Object)

ExceptionCondition
ArgumentNullException

The type of obj is a reference type and obj is a null reference (Nothing in Visual Basic).

This member is an explicit interface implementation. It can be used only when the StringComparer instance is cast to an IEqualityComparer interface.

Portable Class Library

Supported in: Portable Class Library

.NET for Windows Store apps

Supported in: Windows 8
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft