FreezableAttribute.OnCloned Method |
Namespace: PostSharp.Patterns.Threading
Assembly: PostSharp.Patterns.Threading (in PostSharp.Patterns.Threading.dll) Version: 2023.0.3.0 (2023.0.3.0)
public override void OnCloned( ICloneAwareAspect source )
Parameters
- source
- Type: PostSharp.Aspects.ICloneAwareAspect
Aspect instance corresponding to the current aspect instance in the cloned target object.
Implements
ICloneAwareAspect.OnCloned(ICloneAwareAspect)Prior to calling the current method, the aspect framework initializes the source object using CreateInstance(AdviceArgs) and RuntimeInitializeInstance(). That is, the aspect instance in the cloned object is not cloned from the source aspect instance, but from the prototype aspect instance.