PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Model Namespace / Aggregatable­Attribute Class / Aggregatable­Attribute Methods

AggregatableAttribute Methods

The AggregatableAttribute type exposes the following members.

Public methodCompileTimeInitialize
Method invoked at build time to initialize the instance fields of the current aspect. This method is invoked before any other build-time method.
(Inherited from TypeLevelAspect.)
Public methodCompileTimeValidate(Object)
Method invoked at build time to ensure that the aspect has been applied to the right target.
(Inherited from TypeLevelAspect.)
Public methodCreateInstance
Creates a new instance of the aspect based on the current instance, serving as a prototype.
(Inherited from InstanceLevelAspect.)
Public methodGetAspectConfiguration
Method invoked at build tome to get the imperative configuration of the current Aspect.
(Inherited from Aspect.)
Public methodOnCloned
Method called after the an object enhanced by the current aspect has been cloned using MemberwiseClone(). The this parameter refers to the new aspect instance in the cloned object.
(Inherited from InstanceLevelAspect.)
Public methodRuntimeInitializeInstance
Initializes the aspect instance. This method is invoked when all system elements of the aspect (like member imports) have completed.
(Inherited from InstanceLevelAspect.)
Extension Methods
Public Extension MethodGetChildren
Gets the list of children of a specified parent object.
(Defined by AggregatableExtensions.)
Public Extension MethodGetDistinctChildren
Gets a list of distinct children of a specified parent object.
(Defined by AggregatableExtensions.)
Public Extension MethodIsDescendantOf
Determines whether a specified object is a descendant of a specified ancestor.
(Defined by AggregatableExtensions.)
Public Extension MethodVisitSelfAndDescendants
Executes a ChildVisitor for the a specified parent object and all its descendants.
(Defined by AggregatableExtensions.)
See Also