Table of Contents

Class SystemDictionary<TKey, TValue>.EqualityComparer

Namespace
AlgorithmsSW.HashTable
Assembly
AlgorithmsSW.dll
public class SystemDictionary<TKey, TValue>.EqualityComparer : IEqualityComparer<TKey>
Inheritance
SystemDictionary<TKey, TValue>.EqualityComparer
Implements
Inherited Members
Extension Methods

Constructors

EqualityComparer(IComparer<TKey>)

public EqualityComparer(IComparer<TKey> comparer)

Parameters

comparer IComparer<TKey>

Methods

Equals(TKey?, TKey?)

Determines whether the specified objects are equal.

public bool Equals(TKey? x, TKey? y)

Parameters

x TKey

The first object of type T to compare.

y TKey

The second object of type T to compare.

Returns

bool

true if the specified objects are equal; otherwise, false.

GetHashCode(TKey)

Returns a hash code for the specified object.

public int GetHashCode(TKey obj)

Parameters

obj TKey

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

Returns

int

A hash code for the specified object.

Exceptions

ArgumentNullException

The type of obj is a reference type and obj is null.