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

.NET Framework

Supported in: 4.6

Portable Class Library

Supported in: Portable Class Library
Show: