QuickOPC User's Guide and Reference
ValueEquals(Object) Method



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.Widgets Namespace > Widget Class > ValueEquals Method : ValueEquals(Object) Method
The other instance.
Defines a generalized method that classes must implement to create type-specific method for determining value equality of instances. Determines whether this instance has the same value as a given other instance.
Syntax
'Declaration
 
Public Overloads Function ValueEquals( _
   ByVal other As Object _
) As Boolean
'Usage
 
Dim instance As Widget
Dim other As Object
Dim value As Boolean
 
value = instance.ValueEquals(other)
public bool ValueEquals( 
   object other
)
public:
bool ValueEquals( 
   Object^ other
) 

Parameters

other
The other instance.

Return Value

A System.Boolean indicating the result.
Remarks
We intentionally allow null to be passed in, in order to match the behavior of System.Object.Equals(System.Object).

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