| Name | Description |
 | ActualName |
In the differences string, this is the name for the actual name. The default is: Actual
|
 | AttributesToIgnore |
A list of attributes to ignore a class, property or field
|
 | AutoClearCache |
Reflection properties and fields are cached. By default this cache is cleared after each compare. Set to false to keep the cache for multiple compares.
|
 | Caching |
By default properties and fields for types are cached for each compare. By default this cache is cleared after each compare.
|
 | CaseSensitive |
When comparing strings or StringBuilder types, perform a case sensitive comparison. The default is true.
|
 | ClassTypesToIgnore |
A list of class types to be ignored in the comparison. The default is to compare all class types.
|
 | ClassTypesToInclude |
Only these class types will be compared. The default is to compare all class types.
|
 | CollectionMatchingSpec |
Sometimes one wants to match items between collections by some key first, and then
compare the matched objects. Without this, the comparer basically says there is no
match in collection B for any given item in collection A that doesn't Compare with a result of true.
The results of this aren't particularly useful for object graphs that are mostly the same, but not quite.
Enter CollectionMatchingSpec
The enumerable strings should be property (not field, for now, to keep it simple) names of the
Type when encountered that will be used for matching
You can use complex type properties, too, as part of the key to match. To match on all props/fields on
such a matching key, Don't set this property (default comparer behavior)
NOTE: types are looked up as exact. e.g. if foo is an entry in the dictionary and bar is a
sub-class of foo, upon encountering a bar type, the comparer will not find the entry of foo
|
 | CompareChildren |
If true, child objects will be compared. The default is true.
If false, and a list or array is compared list items will be compared but not their children.
|
 | CompareDateTimeOffsetWithOffsets |
When comparing DateTimeOffsets, offsets will be compared as well as the UtcDateTimes. The default is false.
|
 | CompareFields |
If true, compare fields of a class (see also CompareProperties). The default is true.
|
 | ComparePrivateFields |
If true, private fields will be compared. The default is false. Silverlight and WinRT restricts access to private variables.
|
 | ComparePrivateProperties |
If true, private properties and fields will be compared. The default is false. Silverlight and WinRT restricts access to private variables.
|
 | CompareProperties |
If true, compare properties of a class (see also CompareFields). The default is true.
|
 | CompareReadOnly |
If true, compare read only properties (only the getter is implemented). The default is true.
|
 | CompareStaticFields |
If true, static fields will be compared. The default is true.
|
 | CompareStaticProperties |
If true, static properties will be compared. The default is true.
|
 | CustomComparers |
A list of custom comparers that take priority over the built in comparers
|
 | DecimalPrecision |
The precision to compare decimal values. The default is 0.
|
 | DifferenceCallback |
Callback invoked each time the comparer finds a difference. The default is no call back.
|
 | DoublePrecision |
The precision to compare double values. The default is 0.
|
 | ExpectedName |
In the differences string, this is the name for expected name. The default is: Expected
|
 | IgnoreCollectionOrder |
If true, compare each item within a collection to every item in the other. The default is false. WARNING: setting this to true significantly impacts performance.
|
 | IgnoreObjectDisposedException |
Ignore exceptions when objects are disposed
|
 | IgnoreObjectTypes |
If true, objects will be compared ignore their type diferences. The default is false.
|
 | IgnoreUnknownObjectTypes |
If true, unknown object types will be ignored instead of throwing an exception. The default is false.
|
 | InterfaceMembers |
If a class implements an interface then only members of the interface will be compared. The default is all members are compared.
|
 | MaxByteArrayDifferences |
The maximum number of differences to detect when comparing byte arrays. The default is 1.
|
 | MaxDifferences |
The maximum number of differences to detect. The default is 1 for performance reasons.
|
 | MaxMillisecondsDateDifference |
Ignore millisecond differences between DateTime values or DateTimeOffset values. The default is 0 (any time difference will be shown).
|
 | MaxStructDepth |
When comparing struct, the depth to compare for children. The default is 2, the max is 5
|
 | MembersToIgnore |
Ignore Data Table Names, Data Table Column Names, properties, or fields by name during the comparison. Case sensitive. The default is to compare all members.
|
 | MembersToInclude |
Only compare elements by name for Data Table Names, Data Table Column Names, properties and fields. Case sensitive. The default is to compare all members.
|
 | ShowBreadcrumb |
Show breadcrumb at each stage of the comparision. The default is false.
This is useful for debugging deep object graphs.
|
 | SkipInvalidIndexers |
If true, invalid indexers will be skipped. The default is false.
|
 | TreatStringEmptyAndNullTheSame |
If true, string.empty and null will be treated as equal for Strings and String Builder. The default is false.
|
 | TypesToIgnore |
A list of types to be ignored in the comparison. The default is to compare all types. A typical thing to not compare are GUIDs
|
 | TypesToInclude |
Only these types will be compared. The default is to compare all types.
|