Serves as the default hash function. Serves as a hash function for a particular type. Serves as a hash function for a particular type.
public override int GetHashCode()
public:
int GetHashCode(); override
'Declaration
Public Overrides Function GetHashCode() As Integer
Return Value
A hash code for the current object.A hash code for the current object.A hash code for the current object.
Target Platforms: .NET Framework: Windows 7 with SP1, Windows Server 2012; .NET Core: Linux, Microsoft Windows