PostSharp6.2/API Reference/Post­Sharp.​Patterns.​Model.​Type­Adapters Namespace/Register­Type­Adapter­Attribute Class

RegisterTypeAdapterAttribute Class

Custom attribute that registers a TypeAdapter. The custom attribute must be applied to the current project at assembly-level.
Inheritance Hierarchy
System.Object
  System.Attribute
    PostSharp.Patterns.Model.TypeAdapters.RegisterTypeAdapterAttribute

Namespace:  PostSharp.Patterns.Model.TypeAdapters
Assembly:  PostSharp.Patterns.Aggregation (in PostSharp.Patterns.Aggregation.dll) Version: 6.2.13.0 (6.2.13.0)
Syntax
C#
public sealed class RegisterTypeAdapterAttribute : Attribute

The RegisterTypeAdapterAttribute type exposes the following members.

Constructors
  NameDescription
Public methodRegisterTypeAdapterAttribute(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.
Public methodRegisterTypeAdapterAttribute(Type, Type)
Initializes a new RegisterFieldRuleAttribute and specifies the name of the target type.
Properties
  NameDescription
Public propertyTargetTypeName
Gets the name of the target type.
Public propertyTypeAdapterFactoryType
Gets the Type (derived from TypeAdapterFactory).
See Also