C# Class ObjectPrinter.TypeInspectors.Funcs

Boiler plate functions that can be used to customize TypeInspectors
Mostrar archivo Open project: drewburlingame/ObjectPrinter Class Usage Examples

Public Methods

Method Description
ExcludeNamespaces ( ) : Func

Excludes any namespace starting with one of the namespaces provided

ExcludeTypes ( bool inherit ) : Func

Check if the provided object is not an instance of any of the provided types

IncludeNamespaces ( ) : Func

includes any namespace starting with one of the namespaces provided

IncludeTypes ( bool inherit ) : Func

Check if the provided object is an instance of any of the provided types

Private Methods

Method Description
IsTheNamespaceYoureLookingFor ( string ns, Type type ) : bool
IsTheTypeYoureLookingFor ( Type typeToFind, Type type, bool inherit ) : bool

Method Details

ExcludeNamespaces() public static method

Excludes any namespace starting with one of the namespaces provided
public static ExcludeNamespaces ( ) : Func
return Func

ExcludeTypes() public static method

Check if the provided object is not an instance of any of the provided types
public static ExcludeTypes ( bool inherit ) : Func
inherit bool when true, returns false if the given object inherits from any of the provided types
return Func

IncludeNamespaces() public static method

includes any namespace starting with one of the namespaces provided
public static IncludeNamespaces ( ) : Func
return Func

IncludeTypes() public static method

Check if the provided object is an instance of any of the provided types
public static IncludeTypes ( bool inherit ) : Func
inherit bool when true, returns true if the given object inherits from any of the provided types
return Func