-
Notifications
You must be signed in to change notification settings - Fork 18
Comparison Options
Different options can be passed when computing a diff of two objects.
Compare properties of an object
Compare field members of an object
Comparing of contents of collections such as Arrays, Lists, Dictionaries
This is a equivalent to CompareProperties | CompareFields | CompareCollections and is the default value.
A special flag to turn off checks for supported Ignore attributes
The property expressions you pass will be treated as an exclusion/ignore list (default)
The property expressions/names you pass will be treated as an inclusion list, and will only compare properties that you have indicated. This overrides the default behavior of ExcludeList.
A flag that allows you to compare collections that may be out of order. Any values not in both collections, or a different number of values and occurrences will appear as a difference. You should also use AllowEqualsOverride when using this option as this is usually required to function.
A flag that allows you to include IEquatable comparisons, custom Equals overrides, and custom equality operators when checking for object equality.
A special flag to allow comparing of two differently typed objects with similar property names. Any properties/fields that are a different type or name will show up as differences. See Comparing Differently Typed Objects
Specify the IncludeList should not inherit children unless specified
Specify that an empty list and a null list would be an equal comparison