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 (String, Type)
RegisterTypeAdapterAttribute Constructor (String, Type)
Initializes a new RegisterFieldRuleAttribute and specifies the name of the target type. Use this constructor when the target type is not in the current assembly or in an assembly referenced by the current assembly.

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(
	string targetTypeName,
	Type typeAdapterFactoryType
)

Parameters

targetTypeName
Type: System.String
The name of the target type (equal to the FullName property of the target Type).
typeAdapterFactoryType
Type: System.Type
A Type derived from TypeAdapterFactory. The type must have a public default constructor.
See Also