%%ItemTitle%%

Compare .NET Objects

Compare .NET Objects
FAQ
Send Feedback

Glossary Item Box

 

Q:  I would like to report a defect.  I have an object with many differences and it is only reporting one difference.
A:  By default for performance reasons, Compare .NET Objects only detects the first difference.  To capture all differences set Config.MaxDifferences to the maximum differences desired.

Q:  I want to show all the differences in my list of objects.  If the lists are different counts, it doesn't compare everything.  How can I compare it?
A:  Set Config.MaxDifferences to the maximum difference desired.  Set Config.IgnoreCollectionOrder to true.  If you have a primary key for the class, make sure to define a Config.CollectionMatchingSpec.

Q:  What if I don't want to compare everything?
A:  Add the names of class types to the Config.ClassTypesToIgnore or add the names of members to the Config.MembersToIgnore.  If you need something more complex, you can always implement your own custom comparer.  See Custom Comparers.

Q:  What can I use this thing for?
A:  See the Uses topic.

© Kellerman Software 2018. All Rights Reserved.