OPC Studio User's Guide and Reference
GetHashCode Method (Object2)



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib Namespace > Object2 Class : GetHashCode Method
Serves as a hash function for a particular type.
Syntax
'Declaration
 
<JetBrains.Annotations.MustUseReturnValueAttribute()>
Public Overrides Function GetHashCode() As Integer
'Usage
 
Dim instance As Object2
Dim value As Integer
 
value = instance.GetHashCode()
[JetBrains.Annotations.MustUseReturnValue()]
public override int GetHashCode()
[JetBrains.Annotations.MustUseReturnValue()]
public:
int GetHashCode(); override 

Return Value

A hash code for the current object.

This return value of this method should not be ignored.

Remarks

This method or property does not throw any exceptions, aside from execution exceptions such as System.Threading.ThreadAbortException or System.OutOfMemoryException.

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

Reference

Object2 Class
Object2 Members
Base Implementation in GetHashCode