C# Class KellermanSoftware.CompareNetObjects.ExcludeLogic

Exclude types depending upon the configuration
Mostra file Open project: GregFinzer/Compare-Net-Objects Class Usage Examples

Public Methods

Method Description
IgnoredByAttribute ( ComparisonConfig config, MemberInfo info ) : bool

Check if any type has attributes that should be bypassed

ShouldExcludeClassType ( ComparisonConfig config, Type t1, Type t2 ) : bool

Check if the class type should be excluded based on the configuration

ShouldExcludeMember ( ComparisonConfig config, MemberInfo info ) : bool

Returns true if the property or field should be excluded

Method Details

IgnoredByAttribute() public static method

Check if any type has attributes that should be bypassed
public static IgnoredByAttribute ( ComparisonConfig config, MemberInfo info ) : bool
config ComparisonConfig
info System.Reflection.MemberInfo
return bool

ShouldExcludeClassType() public static method

Check if the class type should be excluded based on the configuration
public static ShouldExcludeClassType ( ComparisonConfig config, Type t1, Type t2 ) : bool
config ComparisonConfig
t1 System.Type
t2 System.Type
return bool

ShouldExcludeMember() public static method

Returns true if the property or field should be excluded
public static ShouldExcludeMember ( ComparisonConfig config, MemberInfo info ) : bool
config ComparisonConfig
info System.Reflection.MemberInfo
return bool