TypeAdapter Class |
Namespace: PostSharp.Patterns.Model.TypeAdapters
Assembly: PostSharp.Patterns.Aggregation (in PostSharp.Patterns.Aggregation.dll) Version: 5.0.55.0 (5.0.55.0)
public class TypeAdapter
The TypeAdapter type exposes the following members.
Name | Description | |
---|---|---|
TypeAdapter(Boolean) |
Initializes a new TypeAdapter for no specific type.
| |
TypeAdapter(Type) |
Initializes a new TypeAdapter for a specific AdaptedType.
|
Name | Description | |
---|---|---|
AdaptedType |
Gets the AdaptedType adapted by the current TypeAdapter, or null if the current TypeAdapter is not specific to any AdaptedType.
| |
EligibleRelationshipKind |
Determines which kind of relationships the adapted type can enter with respect to the parent object.
| |
IsAnyInstanceImmutable |
Determines whether any instance of this type or of any derived class is immutable.
| |
IsAnyInstanceThreadSafe |
Determines whether any instance of this type or of any derived class can be safely shared by several threads.
| |
IsImmutable |
Determines whether the adapted type is immutable.
| |
IsThreadSafe |
Determines whether instances of this type can be safely shared by several threads.
| |
ObjectReferenceTypes |
Gets a list of all types referenced from the adapted type.
|
Name | Description | |
---|---|---|
AttachChild |
Attaches an item to a parent. This method is typically invoked by implementations of AttachToParent(Object, RelationshipInfo, IAttacher, Object) to attach items or children to the parent.
| |
AttachToParent |
Attaches an object to a parent object.
| |
DetachChild |
Detaches an item from its parent. This method is typically invoked by implementations of DetachFromParent(Object, Object, RelationshipInfo) to detach items or children from the parent.
| |
DetachFromParent |
Detaches an object from its parent object.
| |
VisitChildren |
Visit children or collection items.
|
Name | Description | |
---|---|---|
QueryInterface<T> |
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.) |
Type adapters must be registered using the RegisterTypeAdapterAttribute custom attribute.