FormatterRepository<TRole>.Register Method (Type, Type) |
Namespace: PostSharp.Patterns.Formatters
Assembly: PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.9.11.0 (6.9.11.0)
public static void Register( Type targetType, Type formatterType )
Parameters
- targetType
- Type: System.Type
- formatterType
- Type: System.Type
Instances of formatterType are going to be created using a parameterless constructor.
When targetType is generic, the registration applies to its generic instantiations (and types that inherit/implement them).