-
-
Notifications
You must be signed in to change notification settings - Fork 194
Class Type Options
GregFinzer edited this page Mar 3, 2018
·
4 revisions
All of these options can be found off the Config.
Example
CompareLogic compare = new CompareLogic();
compare.Config.ComparePrivateProperties = true;
Lists
/// <summary>
/// If true, invalid indexers will be skipped. The default is false.
/// </summary>
public bool SkipInvalidIndexers { get; set; }
Class Level
/// <summary>
/// If true, unknown object types will be ignored instead of throwing an exception. The default is false.
/// </summary>
public bool IgnoreUnknownObjectTypes { get; set; }
/// <summary>
/// A list of class types to be ignored in the comparison. The default is to compare all class types.
/// </summary>
public List<Type> ClassTypesToIgnore { get; set; }
/// <summary>
/// Only these class types will be compared. The default is to compare all class types.
/// </summary>
/// <remarks>If you specify a class type here no other class types will be compared unless it is in this list.</remarks>
public List<Type> ClassTypesToInclude { get; set; }
/// <summary>
/// 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.
/// </summary>
public bool CompareChildren { get; set; }
Members and Fields
/// <summary>
/// If a class implements an interface then only members of the interface will be compared. The default is all members are compared.
/// </summary>
public List<Type> InterfaceMembers { get; set; }
/// <summary>
/// If true, private properties and fields will be compared. The default is false. Silverlight and WinRT restricts access to private variables.
/// </summary>
public bool ComparePrivateProperties { get; set; }
/// <summary>
/// If true, private fields will be compared. The default is false. Silverlight and WinRT restricts access to private variables.
/// </summary>
public bool ComparePrivateFields { get; set; }
/// <summary>
/// If true, static properties will be compared. The default is true.
/// </summary>
public bool CompareStaticProperties { get; set; }
/// <summary>
/// If true, static fields will be compared. The default is true.
/// </summary>
public bool CompareStaticFields { get; set; }
/// <summary>
/// If true, compare read only properties (only the getter is implemented). The default is true.
/// </summary>
public bool CompareReadOnly { get; set; }
/// <summary>
/// If true, compare fields of a class (see also CompareProperties). The default is true.
/// </summary>
public bool CompareFields { get; set; }
/// <summary>
/// If true, compare properties of a class (see also CompareFields). The default is true.
/// </summary>
public bool CompareProperties { get; set; }
/// <summary>
/// A list of attributes to ignore a class, property or field
/// </summary>
public List<Type> AttributesToIgnore { get; set; }