%%PageItemTitle%%

Compare .NET Objects

Compare .NET Objects
Compare Method
See Also  Send Feedback
KellermanSoftware.CompareNetObjects Namespace > ICompareLogic Interface : Compare Method


object1
object2

Glossary Item Box

Compare two objects of the same type to each other.

Syntax

Visual Basic (Declaration) 
Function Compare( _
   ByVal object1 As System.Object, _
   ByVal object2 As System.Object _
) As ComparisonResult
Visual Basic (Usage)Copy Code
Dim instance As ICompareLogic
Dim object1 As System.Object
Dim object2 As System.Object
Dim value As ComparisonResult
 
value = instance.Compare(object1, object2)
C# 
ComparisonResult Compare( 
   System.object object1,
   System.object object2
)
Managed Extensions for C++ 
ComparisonResult* Compare( 
   System.Object* object1,
   System.Object* object2
) 

Parameters

object1
object2

Return Value

True if they are equal

Remarks

Check the Differences or DifferencesString Properties for the differences. Default MaxDifferences is 1 for performance

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

© Kellerman Software 2018 All Rights Reserved.