PostSharp5.0//API Reference/Post­Sharp.​Patterns.​Model.​Type­Adapters Namespace/Register­Type­Adapter­Attribute Class/Register­Type­Adapter­Attribute Constructor/Register­Type­Adapter­Attribute Constructor (Type, Type)

RegisterTypeAdapterAttribute Constructor (Type, Type)

Initializes a new RegisterFieldRuleAttribute and specifies the name of the target type.

Namespace:  PostSharp.Patterns.Model.TypeAdapters
Assembly:  PostSharp.Patterns.Aggregation (in PostSharp.Patterns.Aggregation.dll) Version: 5.0.55.0 (5.0.55.0)
Syntax
C#
public RegisterTypeAdapterAttribute(
	Type targetType,
	Type typeAdapterFactoryType
)

Parameters

targetType
Type: System.Type
The target Type.
typeAdapterFactoryType
Type: System.Type
A Type derived from TypeAdapterFactory. The type must have a public default constructor.
See Also