StringComparer::IEqualityComparer::GetHashCode Method

.NET Framework (current version)

Returns a hash code for the specified object.

Namespace:  System
Assembly:  System.Runtime.Extensions (in System.Runtime.Extensions.dll)

private:
virtual int GetHashCode(
	Object^ obj
) sealed = IEqualityComparer::GetHashCode

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

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

.NET Framework

Supported in: 4.6

Portable Class Library

Supported in: Portable Class Library
Show: