RegisterTypeAdapterAttribute Class
Custom attribute that registers a TypeAdapter. The custom attribute must be applied to the current project at assembly-level.
Namespace: PostSharp.Patterns.Model.TypeAdapters
Assembly: PostSharp.Patterns.Aggregation.dll
Syntax
public sealed class RegisterTypeAdapterAttribute : Attribute
Constructors
Name | Description |
---|---|
RegisterTypeAdapterAttribute(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. |
RegisterTypeAdapterAttribute(Type, Type) | Initializes a new RegisterFieldRuleAttribute and specifies the name of the target type. |
Properties
Name | Description |
---|---|
TargetTypeName | Gets the name of the target type. |
TypeAdapterFactoryType | Gets the System.Type (derived from TypeAdapterFactory). |