MetalamaAPI documentationFlashtrace APIFlashtrace.​FormattersIFormatter­RepositoryGet
Open sandboxFocus

IFormatterRepository.Get Method

Get<T>()

Gets the IFormatter<T> for type T.

Declaration
IFormatter<T> Get<T>()
Returns
Type Description
IFormatter<T>
Type Parameters
Name Description
T

Get(Type)

Gets the IFormatter for the specified System.Type.

Declaration
IFormatter Get(Type objectType)
Parameters
Type Name Description
System.Type objectType
Returns
Type Description
IFormatter
Exceptions
Type Condition
FormatterNotFoundException

The repository cannot provide a formatter for the specified objectType.