Serves as a hash function for a particular type.
System.Object.GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.
Syntax
Visual Basic (Declaration) | |
---|
Public Overrides Function GetHashCode() As Integer |
Visual Basic (Usage) | Copy Code |
---|
Dim instance As UPC
Dim value As Integer
value = instance.GetHashCode() |
C# | |
---|
public override int GetHashCode() |
Return Value
A hash code for the current
System.Object.
Requirements
Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8
See Also