Open sandboxFocus

Class RegisterTypeAdapterAttribute

Custom attribute that registers a TypeAdapter. The custom attribute must be applied to the current project at the assembly level.

Inheritance
RegisterTypeAdapterAttribute
Namespace: PostSharp.Patterns.Model.TypeAdapters
Assembly: PostSharp.Patterns.Aggregation.dll
Syntax
[AttributeUsage(AttributeTargets.Assembly)]
public sealed class RegisterTypeAdapterAttribute : Attribute

Constructors

Name Description
RegisterTypeAdapterAttribute(string, Type)

Initializes a new instance of the RegisterTypeAdapterAttribute class 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.

RegisterTypeAdapterAttribute(Type, Type)

Initializes a new instance of the RegisterTypeAdapterAttribute class and specifies the target type.

Properties

Name Description
TargetTypeName

Gets the name of the target type.

TypeAdapterFactoryType

Gets the Type (derived from TypeAdapterFactory).