MetalamaAPI documentationFlashtrace APIFlashtrace.​FormattersFormatter­Repository
Open sandboxFocus

FormatterRepository Class

Allows to get and register formatters for a specific type.

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

Properties

Name Description
Role

Gets the FormattingRole associated with the current formatter repository.

Methods

Name Description
Create(FormattingRole, Action<FormatterRepository.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 System.Type.