Export (0) Print
Expand All

StringComparer.IEqualityComparer.GetHashCode Method

.NET Framework 4.5

Returns a hash code for the specified object.

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

int IEqualityComparer.GetHashCode(
	Object obj
)

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 null.

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
Show:
© 2014 Microsoft