-
-
Notifications
You must be signed in to change notification settings - Fork 193
Ignoring Types
GregFinzer edited this page Dec 20, 2017
·
3 revisions
Specify 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.
Example
CompareLogic compare = new CompareLogic();
compare.Config.TypesToIgnore.Add(typeof(Guid));
No one will use this option but I put it in here anyway. ❤️ Greg
Only these types will be compared. The default is to compare all types. If you specify a type here no others will be compared unless it is in this list. You MUST specify ALL Types that you want to compare.
Example
CompareLogic compare = new CompareLogic();
compare.Config.TypesToIgnore.Add(typeof(Customer));
compare.Config.TypesToIgnore.Add(typeof(String));