FormatterRepository<TRole>.Register Method (Type, IFormatter) |
Registers the given formatter for the given targetType.
Namespace: PostSharp.Patterns.Formatters
Assembly: PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.10.10.0 (6.10.10.0)
C#
public static void Register( Type targetType, IFormatter formatter )
Parameters
- targetType
- Type: System.Type
- formatter
- Type: PostSharp.Patterns.Formatters.IFormatter
The formatter will work for the given target type, and also for any type that inherits/implements the target type.