Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Model Namespace / Notify­Property­Changed­Attribute Class / Notify­Property­Changed­Attribute Methods / Notify­Property­Changed­Attribute.​Create­Instance Method

NotifyPropertyChangedAttribute.CreateInstance Method

Creates a new instance of the aspect based on the current instance, serving as a prototype.

Namespace:  PostSharp.Patterns.Model
Assembly:  PostSharp.Patterns.Model (in PostSharp.Patterns.Model.dll) Version: 5.0.39.0 (5.0.39.0)
Syntax
C#
public override Object CreateInstance(
	AdviceArgs adviceArgs
)

Parameters

adviceArgs
Type: PostSharp.Aspects.AdviceArgs
Aspect arguments.

Return Value

Type: Object
A new instance of the aspect, typically a clone of the current prototype instance.

Implements

IInstanceScopedAspect.CreateInstance(AdviceArgs)
Remarks
This method is typically implemented by invoking MemberwiseClone().
See Also