PostSharp / / API Reference / Post­Sharp.​Patterns.​Formatters / Formatter­Repository<TRole> / Register

Method Register

Register<T>(IFormatter<T>)

Declaration
public static void Register<T>(IFormatter<T> formatter)
Parameters
Type Name Description
IFormatter<T> formatter
Type Parameters
Name Description
T

Register(Type, IFormatter)

Declaration
public static void Register(Type targetType, IFormatter formatter)
Parameters
Type Name Description
Type targetType
IFormatter formatter

Register(Type, Type)

Declaration
public static void Register(Type targetType, Type formatterType)
Parameters
Type Name Description
Type targetType
Type formatterType