Serves as the default hash function. Serves as a hash function for a particular type. Serves as a hash function for a particular type.
Syntax
'Declaration
Public Overrides Function GetHashCode() As Integer
'Usage
Dim instance As Parameters
Dim value As Integer
value = instance.GetHashCode()
public override int GetHashCode()
public:
int GetHashCode(); override
Return Value
A hash code for the current object.A hash code for the current object.A hash code for the current object.
Requirements
Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows
See Also