C# Класс ObjectPrinter.TypeInspectorsRegistration

Use this class to customize type inspector registration. Order inspectors will be applied: - Enum - Exception - Enumerables - Custom - CatchAll
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
GetDefaultEnumerableInspectors ( ) : ITypeInspector[]
GetRegisteredInspectors ( ) : IEnumerable

Описание методов

InspectAllMsTypes() публичный Метод

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
Результат TypeInspectorsRegistration

OverrideEnumInspector() публичный Метод

Overrides the default EnumTypeInspector.
public OverrideEnumInspector ( ITypeInspector enumTypeInspector ) : TypeInspectorsRegistration
enumTypeInspector ITypeInspector
Результат TypeInspectorsRegistration

OverrideEnumerableInspectors() публичный Метод

DefaultEnumerableInspectors is used if not overridden
public OverrideEnumerableInspectors ( ) : TypeInspectorsRegistration
Результат TypeInspectorsRegistration

OverrideExceptionInspector() публичный Метод

Overrides the default ExceptionTypeInspector.
public OverrideExceptionInspector ( ITypeInspector exceptionTypeInspector ) : TypeInspectorsRegistration
exceptionTypeInspector ITypeInspector
Результат TypeInspectorsRegistration

RegisterInspector() публичный Метод

Inspectors to be used run before the CatchAll inspector
public RegisterInspector ( ITypeInspector inspector ) : TypeInspectorsRegistration
inspector ITypeInspector
Результат TypeInspectorsRegistration

RegisterInspectors() публичный Метод

Inspectors to be used run before the CatchAll inspector
public RegisterInspectors ( ) : TypeInspectorsRegistration
Результат TypeInspectorsRegistration