PostSharp4.3//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.Common (in PostSharp.Patterns.Common.dll) Version: 4.3.48.0 (4.3.48.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