asp.net.ph

IHashCodeProvider Interface

System.Collections Namespace


Supplies a hash code for an object, using a custom hash function.

IHashCodeProvider Interface Members

Collapse   Methods

Visibility Name Parameters Return Type
public GetHashCode ( Object obj ) Int32

Remarks

The IHashCodeProvider interface is used in conjunction with Hashtable.

The objects used as keys by a Hashtable must implement or inherit the Object.GetHashCode and Object.Equals methods. Object.GetHashCode or the key's implementation of Object.GetHashCode is used as the hash code provider. Object.Equals or the key's implementation of Object.Equals is used as the comparer.

However, some overloads of the Hashtable constructor take a parameter that is an IHashCodeProvider implementation, or a parameter that is an IComparer implementation, or both.

See Also

Hashtable Class   IComparer Interface Skip Navigation Links


Previous page Back to top Next page

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note