ICloneAwareAspect Interface |
Defines the semantics of aspects that require to be notified after
a target object is cloned using MemberwiseClone().
Namespace: PostSharp.Aspects
Assembly: PostSharp (in PostSharp.dll) Version: 2023.0.3.0 (2023.0.3.0)
C#
public interface ICloneAwareAspect : IInstanceScopedAspect, IAspect
The ICloneAwareAspect type exposes the following members.
Name | Description | |
---|---|---|
CreateInstance |
Creates a new instance of the aspect based on the current instance, serving as a prototype.
(Inherited from IInstanceScopedAspect.) | |
OnCloned |
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.
| |
RuntimeInitializeInstance |
Initializes the aspect instance. This method is invoked when all system elements of the aspect (like member imports)
have completed.
(Inherited from IInstanceScopedAspect.) |