Open sandboxFocus

Method CreateInstance

CreateInstance(AdviceArgs)

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

Declaration
public override object CreateInstance(AdviceArgs adviceArgs)
Parameters
Type Name Description
AdviceArgs adviceArgs

Aspect arguments.

Returns
Type Description
object

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

Overrides
Remarks

This method is typically implemented by invoking MemberwiseClone().