StringComparer.IEqualityComparer.GetHashCode(Object) Method

Definition

Returns a hash code for the specified object.

C#
int IEqualityComparer.GetHashCode(object obj);

Parameters

obj
Object

The object from which to obtain the hash code.

Returns

A hash code for the specified object.

Implements

Remarks

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

Applies to

Proizvod Verzije
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2
.NET Standard 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 2.1
UWP 10.0