Share via


ValueComparer<T>.GetHashCode Method

Definition

Overloads

GetHashCode(Object)

Returns the hash code for the given instance.

GetHashCode(T)

Returns the hash code for the given instance.

GetHashCode(Object)

Returns the hash code for the given instance.

public override int GetHashCode (object instance);
public override int GetHashCode (object? instance);
override this.GetHashCode : obj -> int
Public Overrides Function GetHashCode (instance As Object) As Integer

Parameters

instance
Object

The instance.

Returns

The hash code.

Applies to

GetHashCode(T)

Returns the hash code for the given instance.

public virtual int GetHashCode (T instance);
override this.GetHashCode : 'T -> int
Public Overridable Function GetHashCode (instance As T) As Integer

Parameters

instance
T

The instance.

Returns

The hash code.

Implements

Applies to