MetalamaAPI documentationFlashtrace APIFlashtrace.​FormattersFormatter­RepositoryTry­Get
Open sandboxFocus

FormatterRepository.TryGet Method

TryGet(Type, out IFormatter)

Attempts to get the IFormatter for the specified Type.

Declaration
public bool TryGet(Type objectType, out IFormatter formatter)
Parameters
Type Name Description
Type objectType

Object type.

IFormatter formatter

The formatter for objects of the specified type, or null if the repository is unable to provide a formatter for the specified type.

Returns
Type Description
Boolean

true if the repository was able to provide a formatter for the specified type; otherwise, false.

Implements
IFormatterRepository.TryGet(Type, out IFormatter)