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

FormatterRepository<TRole>.Register Method

Overload List
  NameDescription
Public methodStatic memberRegister<T>(IFormatter<T>)
Registers the given formatter for the type T.
Public methodStatic memberRegister(Type, IFormatter)
Registers the given formatter for the given targetType.
Public methodStatic memberCode exampleRegister(Type, Type)
Registers the given formatterType for the given targetType.
See Also