PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Aspects Namespace / IClone­Aware­Aspect Interface / IClone­Aware­Aspect Methods

ICloneAwareAspect Methods

The ICloneAwareAspect type exposes the following members.

Public methodCreateInstance
Creates a new instance of the aspect based on the current instance, serving as a prototype.
(Inherited from IInstanceScopedAspect.)
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.
Public methodRuntimeInitializeInstance
Initializes the aspect instance. This method is invoked when all system elements of the aspect (like member imports) have completed.
(Inherited from IInstanceScopedAspect.)
See Also