C# Class ObjectPrinter.TypeInspectorsRegistration

Use this class to customize type inspector registration. Order inspectors will be applied: - Enum - Exception - Enumerables - Custom - CatchAll
显示文件 Open project: drewburlingame/ObjectPrinter Class Usage Examples

Public Methods

Method Description
InspectAllMsTypes ( ) : TypeInspectorsRegistration

If not specified, ToString() is called on all types in 'System' and 'Microsoft' namespaces not already covered by a type inspector. Calling this will cause those types to be inspected by the CatchAll inspector

OverrideEnumInspector ( ITypeInspector enumTypeInspector ) : TypeInspectorsRegistration

Overrides the default EnumTypeInspector.

OverrideEnumerableInspectors ( ) : TypeInspectorsRegistration

DefaultEnumerableInspectors is used if not overridden

OverrideExceptionInspector ( ITypeInspector exceptionTypeInspector ) : TypeInspectorsRegistration

Overrides the default ExceptionTypeInspector.

RegisterInspector ( ITypeInspector inspector ) : TypeInspectorsRegistration

Inspectors to be used run before the CatchAll inspector

RegisterInspectors ( ) : TypeInspectorsRegistration

Inspectors to be used run before the CatchAll inspector

Private Methods

Method Description
GetDefaultEnumerableInspectors ( ) : ITypeInspector[]
GetRegisteredInspectors ( ) : IEnumerable

Method Details

InspectAllMsTypes() public method

If not specified, ToString() is called on all types in 'System' and 'Microsoft' namespaces not already covered by a type inspector. Calling this will cause those types to be inspected by the CatchAll inspector
public InspectAllMsTypes ( ) : TypeInspectorsRegistration
return TypeInspectorsRegistration

OverrideEnumInspector() public method

Overrides the default EnumTypeInspector.
public OverrideEnumInspector ( ITypeInspector enumTypeInspector ) : TypeInspectorsRegistration
enumTypeInspector ITypeInspector
return TypeInspectorsRegistration

OverrideEnumerableInspectors() public method

DefaultEnumerableInspectors is used if not overridden
public OverrideEnumerableInspectors ( ) : TypeInspectorsRegistration
return TypeInspectorsRegistration

OverrideExceptionInspector() public method

Overrides the default ExceptionTypeInspector.
public OverrideExceptionInspector ( ITypeInspector exceptionTypeInspector ) : TypeInspectorsRegistration
exceptionTypeInspector ITypeInspector
return TypeInspectorsRegistration

RegisterInspector() public method

Inspectors to be used run before the CatchAll inspector
public RegisterInspector ( ITypeInspector inspector ) : TypeInspectorsRegistration
inspector ITypeInspector
return TypeInspectorsRegistration

RegisterInspectors() public method

Inspectors to be used run before the CatchAll inspector
public RegisterInspectors ( ) : TypeInspectorsRegistration
return TypeInspectorsRegistration