PostSharp 6.7 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Formatters Namespace / Formatter­Repository(TRole) Class / Formatter­Repository(TRole) Methods / Formatter­Repository(TRole).​Register Method / Formatter­Repository(TRole).​Register(T) Method (IFormatter(T))

FormatterRepository<TRole>.Register<T> Method (IFormatter<T>)

Registers the given formatter for the type T.

Namespace:  PostSharp.Patterns.Formatters
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.7.12.0 (6.7.12.0)
Syntax
C#
public static void Register<T>(
	IFormatter<T> formatter
)

Parameters

formatter
Type: PostSharp.Patterns.Formatters.IFormatter<T>

Type Parameters

T
See Also