Open sandboxFocus

Class FormatterRepository

Allows to get and register formatters for a specific type.

Inheritance
FormatterRepository
Namespace: Flashtrace.Formatters
Assembly: Flashtrace.Formatters.dll
Syntax
public sealed class FormatterRepository : IFormatterRepository

Properties

Name Description
Role

Gets the FormattingRole associated with the current formatter repository.

Methods

Name Description
Create(FormattingRole, Action<Builder>?)
Get(Type)

Returns a formatter for a specific object. This overload should be used when the type of the object is not known at build time because the type is non-sealed.

Get<T>()

Returns the formatter for the type T.

TryGet(Type, out IFormatter?)

Attempts to get the IFormatter for the specified Type.