C# Class ObjectPrinter.TypeInspectorsRegistration

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

Méthodes publiques

Méthode 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

Méthode Description
GetDefaultEnumerableInspectors ( ) : ITypeInspector[]
GetRegisteredInspectors ( ) : IEnumerable

Method Details

InspectAllMsTypes() public méthode

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
Résultat TypeInspectorsRegistration

OverrideEnumInspector() public méthode

Overrides the default EnumTypeInspector.
public OverrideEnumInspector ( ITypeInspector enumTypeInspector ) : TypeInspectorsRegistration
enumTypeInspector ITypeInspector
Résultat TypeInspectorsRegistration

OverrideEnumerableInspectors() public méthode

DefaultEnumerableInspectors is used if not overridden
public OverrideEnumerableInspectors ( ) : TypeInspectorsRegistration
Résultat TypeInspectorsRegistration

OverrideExceptionInspector() public méthode

Overrides the default ExceptionTypeInspector.
public OverrideExceptionInspector ( ITypeInspector exceptionTypeInspector ) : TypeInspectorsRegistration
exceptionTypeInspector ITypeInspector
Résultat TypeInspectorsRegistration

RegisterInspector() public méthode

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

RegisterInspectors() public méthode

Inspectors to be used run before the CatchAll inspector
public RegisterInspectors ( ) : TypeInspectorsRegistration
Résultat TypeInspectorsRegistration