System.Collections.IStructuralEquatable.GetHashCode Method

Returns a hash code for the current instance.

Syntax

public int GetHashCode (IEqualityComparer comparer)

Parameters

comparer
An object that computes the hash code of the current object.

Returns

The hash code for the current instance.

Remarks

Implement this method to return customized hash codes for collection objects that correspond to the customized comparison for structural equality provided by the IStructuralEquatable.Equals(object, IEqualityComparer) method.

Requirements

Namespace: System.Collections
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 4.0.0.0