PostSharpAPI ReferencePost­Sharp.​Patterns.​FormattersFormatter­Repository<TRole>Get
Open sandboxFocus

FormatterRepository<TRole>.Get Method

Get<T>()

Returns the formatter for the type T.

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

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.

Declaration
public static IFormatter Get(Type objectType)
Parameters
Type Name Description
System.Type objectType

Object type.

Returns
Type Description
IFormatter

The formatter the object objectType.