Compare two objects of the same type to each other.
Syntax
Visual Basic (Declaration) | |
---|
Public Overloads Function Equals( _
ByVal x As T, _
ByVal y As T _
) As System.Boolean |
Visual Basic (Usage) | Copy Code |
---|
Dim instance As LogicEqualityComparer(Of T)
Dim x As T
Dim y As T
Dim value As System.Boolean
value = instance.Equals(x, y) |
C# | |
---|
public System.bool Equals(
T x,
T y
) |
Managed Extensions for C++ | |
---|
public: System.bool Equals(
T* x,
T* y
) |
Parameters
Return Value
True if the objects are considered equivalent, according to the current CompareLogic.
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also