







![]() |
Compare .NET Objects | |
Compare Method | |
See Also Send Feedback |
KellermanSoftware.CompareNetObjects Namespace > ICompareLogic Interface : Compare Method |
- object1
- object2
Glossary Item Box
Visual Basic (Declaration) | |
---|---|
Function Compare( _ ByVal object1 As System.Object, _ ByVal object2 As System.Object _ ) As ComparisonResult |
Visual Basic (Usage) | ![]() |
---|---|
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
Check the Differences or DifferencesString Properties for the differences.
Default MaxDifferences is 1 for performance
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